IndexedBy

Wrapper for R with Type-Safe I-Indexing. See also: http://forum.dlang.org/thread/gayfjaslyairnzrygbvh@forum.dlang.org#post-gayfjaslyairnzrygbvh:40forum.dlang.org

TODO Merge with https://github.com/rcorre/enumap

TODO Use std.range.indexed when I is an enum with non-contigious enumerators. Perhaps use among aswell.

TODO Rename to something more concise such as Bby.

TODO Allow I to be a string and if so derive Index to be that string.

TODO Support R being a static array: - If I is an enum its number of elements should match R.length

  1. struct IndexedBy(R, I)
    struct IndexedBy (
    R
    I
    ) if (
    isIndexableBy!(R, I)
    ) {}
  2. struct IndexedBy(R, string I_ = "Index")

Alias This

_r

Members

Aliases

Index
alias Index = I
Undocumented in source.

Mixins

__anonymous
mixin genOps!I
Undocumented in source.

Variables

_r
R _r;
Undocumented in source.

Meta