framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Constant Groups | Functions
variadic_switch_return.hpp File Reference

Variadic switch (return). More...

#include <utility>
#include <boost/preprocessor/config/limits.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/iteration/local.hpp>
#include <framework/common/common_macros.hpp>
#include <framework/common/pack_container.hpp>
#include <framework/common/variadic_switch_return.inl>

Go to the source code of this file.

Namespaces

 framework
 Framework namespace.
 

Constant Groups

 framework
 Framework namespace.
 

Functions

template<typename CaseList , typename Handler , typename Index , typename... Args>
FRAMEWORK_ALWAYS_INLINE auto framework::variadic_switch_return (Handler &&handler, Index &&index, Args &&...args) -> decltype(handler(std::forward< Args >(args)...))
 Variadic switch (return). More...
 

Detailed Description

Variadic switch (return).

Todo:
Support for the FRAMEWORK_NO_BOOST macro needs to be added - a reasonable fixed switch limit should be selected and the relevant macros should be invoked directly.