tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
inplace_function.hpp File Reference

Go to the source code of this file.

Classes

struct  bad_function_call
 
struct  inplace_function< R(Args...), Capacity, Alignment >
 

Namespaces

namespace  etl
 

Functions

template<typename R, typename... Args, size_t Capacity, size_t Alignment>
constexpr auto operator!= (inplace_function< R(Args...), Capacity, Alignment > const &f, nullptr_t) noexcept -> bool
 Compares a etl::inplace_function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.
 
template<typename R, typename... Args, size_t Capacity, size_t Alignment>
constexpr auto operator!= (nullptr_t, inplace_function< R(Args...), Capacity, Alignment > const &f) noexcept -> bool
 Compares a etl::inplace_function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.
 
template<typename R, typename... Args, size_t Capacity, size_t Alignment>
constexpr auto operator== (inplace_function< R(Args...), Capacity, Alignment > const &f, nullptr_t) noexcept -> bool
 Compares a etl::inplace_function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.
 
template<typename R, typename... Args, size_t Capacity, size_t Alignment>
constexpr auto operator== (nullptr_t, inplace_function< R(Args...), Capacity, Alignment > const &f) noexcept -> bool
 Compares a etl::inplace_function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.
 
template<typename R, typename... Args, size_t Capacity, size_t Alignment>
auto swap (inplace_function< R(Args...), Capacity, Alignment > &lhs, inplace_function< R(Args...), Capacity, Alignment > &rhs) noexcept -> void
 Overloads the etl::swap algorithm for etl::inplace_function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).