Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
BuilderQualifierSupport_test Class Reference

Description

Test:
Demonstrate a technique to supply additional descriptive ctor arguments in a type safe way.
  • target and receiver may be some configurable Strategy etc.
  • the idea is to provide friend functors, which might tweak or reset internal settings;
  • these functors are packaged into free standing friend functions with intuitive naming...
  • which, on call-site, look like algebraic expressions/data-types.
Remarks
because the actual helper function is a free function, it may be integrated in various ways, but typically the support template will be mixed-in, as demonstrated here; this mechanism can be integrated into a constructor call, thus optionally allowing for arbitrary extra qualifiers, even with extra arguments.
See also
builder-qualifier-support.hpp

Definition at line 105 of file builder-qualifier-support-test.cpp.

Private Member Functions

void run (Arg)
 

Member Function Documentation

◆ run()

void run ( Arg  )
inlineprivate

Definition at line 109 of file builder-qualifier-support-test.cpp.

+ Inheritance diagram for BuilderQualifierSupport_test:
+ Collaboration diagram for BuilderQualifierSupport_test:

The documentation for this class was generated from the following file: