MCPcopy Create free account
hub / github.com/boost-ext/te / expr_wrapper

Class expr_wrapper

include/boost/te.hpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template <class TExpr>
71class expr_wrapper final {
72 static_assert(std::is_empty<TExpr>{});
73
74 public:
75 template <class... Ts>
76 decltype(auto) operator()(Ts &&... args) const {
77 return reinterpret_cast<const TExpr &>(*this)(std::forward<Ts>(args)...);
78 }
79};
80
81/*! Same as std::exchange() but is guaranteed constexpr !*/
82template<class T, class U>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected