structuresd.utils

Undocumented in source.

Members

Functions

max
T[0] max(T data)

Returns the maximum. @tparam T Parameters of the function @return Type from the first parameter

min
T[0] min(T data)

Returns the minimum. @tparam T Parameters of the function @return Type from the first parameter

Templates

arrayType
template arrayType(alias T = A[], A)

Returns array type @tparam T The array to unpack

hasAttribute
template hasAttribute(ATTRIBUTE, alias MEMBER)

Checks if an member has an attribute. @tparam ATTRIBUTE The attribute to check if exits. @tparam MEMBER The member to check.

isSameContainerFunction
template isSameContainerFunction(BASE_T, TYPE_T, string NAME)

Check function from two different containers to be equal. Result type is a boolean. BASE_T have to contain a member with the name NAME @tparam BASE_T base type @tparam TYPE_T container to check @tparam NAME name of the member

membersWith
template membersWith(alias CHECKER, TYPE)

List all members with matching credentials. @tparam CHECKER The checker function @tparam TYPE The type to search in.

Variables

isSameFunction
enum bool isSameFunction(alias T1, alias T2);

Check two function have same enough signature to convert T2 to T1. Result type is a bool. @tparam T1 Base function @tparam T2 Function to check

Meta