bolts 0.1.0

Utility library for meta programming


To use this package, run the following command in your project's root directory:

Bolts Meta Poragmming Utility Library

Full API docs available here

Bolts is a utility library for the D programming language that provides templates and compilet time functions that are not available in D's std.traits and/or std.meta packages.

E.g.

struct S {
    void f() {}
    static void sf() {}
    @property int rp() { return m; }
    @property void wp(int) {}
}

static assert( hasProperty!(S, "rp"));
static assert(!isSortedRange!S);
static assert(memberFunctions!S == ["f", "sf"]);

alias R1 = typeof([1, 2, 3].filter!"true");
alias R2 = typeof([1.0, 2.0, 3.0]);

static assert(is(FlattenRanges!(int, R1, R2) == AliasSeq!(int, int, double)));

static assert(is(TypesOf!("hello", 1, 2, 3.0, real) == AliasSeq!(string, int, int, double, real)));
Authors:
  • Ali Akhtarzada
Dependencies:
none
Versions:
1.3.0 2019-Jul-26
1.2.0 2019-Jul-26
1.1.0 2019-Jul-25
1.0.1 2019-Jul-17
1.0.0 2019-Jul-15
Show all 27 versions
Download Stats:
  • 7 downloads today

  • 64 downloads this week

  • 806 downloads this month

  • 13194 downloads total

Score:
3.1
Short URL:
bolts.dub.pm