17#ifndef IOX_HOOFS_CXX_NEWTYPE_HPP
18#define IOX_HOOFS_CXX_NEWTYPE_HPP
20#include "iceoryx_hoofs/cxx/algorithm.hpp"
21#include "iceoryx_hoofs/internal/cxx/newtype/assignment.hpp"
22#include "iceoryx_hoofs/internal/cxx/newtype/comparable.hpp"
23#include "iceoryx_hoofs/internal/cxx/newtype/constructor.hpp"
24#include "iceoryx_hoofs/internal/cxx/newtype/convertable.hpp"
25#include "iceoryx_hoofs/internal/cxx/newtype/internal.hpp"
26#include "iceoryx_hoofs/internal/cxx/newtype/protected_constructor.hpp"
27#include "iceoryx_hoofs/internal/cxx/newtype/sortable.hpp"
72template <
typename T,
template <
typename>
class... Policies>
73class NewType :
public Policies<NewType<T, Policies...>>...
76 NewType(newtype::internal::ProtectedConstructor_t,
const T& rhs)
noexcept;
109 explicit operator T() const noexcept;
111 template <typename Type>
112 friend typename Type::
value_type newtype::internal::newTypeAccessor(const Type&) noexcept;
120#include "iceoryx_hoofs/internal/cxx/newtype.inl"
Implementation of the haskell NewType pattern: https://wiki.haskell.org/Newtype Lets say you would li...
Definition: newtype.hpp:74
T value_type
the type of the underlying value
Definition: newtype.hpp:82
NewType() noexcept
default constructor
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:29