IndexedBy

Wrapper for R with Type-Safe I-Indexing.

  1. struct IndexedBy(R, I)
    struct IndexedBy (
    R
    I
    ) if (
    isIndexableBy!(R, I)
    ) {
    R _r;
    }
  2. struct IndexedBy(R, string IndexTypeName)

Alias This

_r

Mixed In Members

From mixin _genIndexAndSliceOps!I

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.

Meta