noLockMemoizeMember

Use it to memoize both a struct or class instance for a member function and function arguments like:

struct S {
    int f(int a, int b) {
        return a + b;
    }
}
alias f2 = memoizeMember!(S, "f");
alias f3 = memoizeMember!(S, "f", 10);
S s;
assert(f2(s, 2, 3) == 5);

As you see the member function name ("f" in the example) is passed as a string. This is very unnatural, but I found no other way to do it.

Members

Aliases

noLockMemoizeMember
alias noLockMemoizeMember = noLockMemoize!f
Undocumented in source.

Functions

f
ReturnType!Member f(S s, Parameters!Member others)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta