Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.
Ilya Yaroshenko, Phobos Authors
- Data size counter.Does not store anything.Examples:
Counter!char counter; counter.put("Ми"); assert(counter.count == 4); counter.put('р'); // Cyrillic assert(counter.count == 6);Examples:
Counter!wchar counter; counter.put("Ми"); assert(counter.count == 2); counter.put('р'); // Cyrillic assert(counter.count == 3);Examples:
Counter!int counter; import std.algorithm: until; counter.put([1, 2, 3, 4, 5].until(3));
- @property size_t
- Data count.
put(U)(auto ref U
Copyright © 2016-2020 by Ilya Yaroshenko | Page generated by Ddoc on Wed Nov 25 09:17:04 2020