emlabcpp
modern opinionated embedded C++ library
visit.h File Reference
#include "algorithm/impl.h"
#include <tuple>
#include <variant>
+ Include dependency graph for visit.h:

Go to the source code of this file.

Namespaces

 emlabcpp
 MIT License.
 

Functions

template<typename Visitor , typename Variant >
decltype(auto) emlabcpp::visit_index (Visitor &&vis, Variant const &var)
 
template<typename Visitor , typename Variant >
decltype(auto) emlabcpp::visit (Visitor &&vis, Variant &&var)
 Reimplementation of std::visit. More...
 
template<typename Visitor , typename Variant >
decltype(auto) emlabcpp::apply_on_visit (Visitor &&vis, Variant &&var)
 Combines visit and std::apply into one step - provided variant is expanded with visit and apply is called on the present alternative, items from apply are passed to calle to visitor vis. More...