findFirstUDA

Small convenience wrapper to find and extract certain UDA from given type. Will stop on first element which is of required type.

  1. template findFirstUDA(alias UDA, alias Symbol, bool allow_types = false)
    template findFirstUDA (
    alias UDA
    alias Symbol
    bool allow_types = false
    ) if (
    !is(UDA)
    ) {}
  2. template findFirstUDA(UDA, alias Symbol, bool allow_types = false)

Members

Manifest constants

findFirstUDA
enum findFirstUDA;
Undocumented in source.

Parameters

UDA

type or template to search for in UDA list

Symbol

symbol to query for UDA's

allow_types

if set to false considers attached UDA types an error (only accepts instances/values)

Return Value

aggregated search result struct with 3 field. value aliases found UDA. found is boolean flag for having a valid find. index is integer index in attribute list this UDA was found at.

Meta