mpc
Haskell-like feature supports in C++
mpc::Identity< T > Struct Template Reference

newtype Identity a = Identity { runIdentity :: a } More...

#include <identity.hpp>

Public Types

using value_type = T
 

Public Member Functions

template<class U = T>
requires std::constructible_from<T, U&&>
constexpr Identity (U &&u) noexcept(std::is_nothrow_constructible_v< T, U && >)
 
constexpr const T & operator* () const &noexcept
 
constexpr const T && operator* () const &&noexcept
 
constexpr T & operator* () &noexcept
 
constexpr T && operator* () &&noexcept
 
constexpr const T * operator-> () const noexcept
 
constexpr T * operator-> () noexcept
 

Detailed Description

template<copy_constructible_object T>
struct mpc::Identity< T >

newtype Identity a = Identity { runIdentity :: a }


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