emlabcpp
modern opinionated embedded C++ library
emlabcpp::convert_to< T > Struct Template Reference

Object with operator() that constructs object of type Tout of passed-in value. More...

#include <algorithm.h>

Public Member Functions

template<typename U >
constexpr T operator() (U &&src) const noexcept(noexcept(T{ std::forward< U >(src) }))
 

Detailed Description

template<typename T>
struct emlabcpp::convert_to< T >

Object with operator() that constructs object of type Tout of passed-in value.

Usefull for for functions expecting callable as an argument.

Member Function Documentation

◆ operator()()

template<typename T >
template<typename U >
constexpr T emlabcpp::convert_to< T >::operator() ( U &&  src) const
inlineconstexprnoexcept

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