Unit is analogous to void
, but can be safely returned, stored, etc.
More...
#include <unit.hpp>
|
constexpr | unit_t (const unit_t &) noexcept=default |
|
constexpr unit_t & | operator= (const unit_t &) noexcept=default |
|
template<class T > |
constexpr | unit_t (T &&) noexcept |
|
template<class... Ts> |
constexpr unit_t | operator() (Ts &&...) const noexcept |
|
|
static constexpr int | compare (const unit_t &) noexcept |
|
|
(Note that these are not member functions.)
|
template<class Processor > |
void | serialize (Processor &, const unit_t &, unsigned int) |
|
std::string | to_string (const unit_t &) |
|
Unit is analogous to void
, but can be safely returned, stored, etc.
to enable higher-order abstraction without cluttering code with exceptions for void
(which can't be stored, for example).
◆ serialize()
template<class Processor >
void serialize |
( |
Processor & |
, |
|
|
const unit_t & |
, |
|
|
unsigned |
int |
|
) |
| |
|
related |
◆ to_string()
std::string to_string |
( |
const unit_t & |
| ) |
|
|
related |
The documentation for this struct was generated from the following file: