AdaptableGenerator
DescriptionAn Adaptable Generator is a Generator with a nested Refinement ofAssociated types
Notation
DefinitionsValid expressionsNone, except for those defined by Generator Expression semanticsComplexity guaranteesInvariantsModelsThe STL does not include any types that are models of Adaptable Generator. An example of a user-defined Adaptable Generator is as follows. struct counter { typedef int result_type; counter() : n(0) {} result_type operator()() { return n++; } result_type n; }; Notes[1] Note the implication of this: a function pointer See also |