ivutils
Loading...
Searching...
No Matches
call_if< condition > Struct Template Reference

Template to use in compile-time branch selection. More...

#include <utiltl.h>

Detailed Description

template<bool condition>
struct call_if< condition >

Template to use in compile-time branch selection.

Example: call_if<compile_time_bool_const>([&, this](auto &abstract_arg) { abstract_arg->func(...); }, arg_from_scope ); This compiles even when arg_from_scope->func() is not defined for compile_time_bool_const= false.


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