LLFIO v2.00
Loading...
Searching...
No Matches
llfio_v2_xxx::construct< T > Struct Template Reference

Metaprogramming shim for constructing any handle subclass. More...

#include "handle.hpp"

Public Member Functions

result< T > operator() () const noexcept
 

Detailed Description

template<class T>
struct llfio_v2_xxx::construct< T >

Metaprogramming shim for constructing any handle subclass.

Each handle implementation provides one or more static member functions used to construct it. Each of these has a descriptive, unique name so it can be used as a free function which is convenient and intuitive for human programmers.

This design pattern is however inconvenient for generic code which needs a single way of constructing some arbitrary unknown handle implementation. This shim function provides that.

Member Function Documentation

◆ operator()()

template<class T >
result< T > llfio_v2_xxx::construct< T >::operator() ( ) const
inlinenoexcept
536{ static_assert(!std::is_same<T, T>::value, "construct<T>() was not specialised for the type T supplied"); }

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