libMesh
Public Member Functions | Public Attributes | List of all members
libMesh::Predicates::movable_il< T > Struct Template Reference

Helper object for creating a std::vector from a std::initializer_list https://stackoverflow.com/questions/46737054/vectorunique-ptra-using-initialization-list. More...

#include <multi_predicates.h>

Public Member Functions

 movable_il (T &&in)
 Construct from rvalue reference of type T. More...
 
template<typename U >
 movable_il (U &&in)
 Construct from rvalue reference of type U, using forwarding. More...
 
 operator T () const &&
 Return an rvalue reference to ourself. More...
 

Public Attributes

t
 

Detailed Description

template<class T>
struct libMesh::Predicates::movable_il< T >

Helper object for creating a std::vector from a std::initializer_list https://stackoverflow.com/questions/46737054/vectorunique-ptra-using-initialization-list.

Definition at line 126 of file multi_predicates.h.

Constructor & Destructor Documentation

◆ movable_il() [1/2]

template<class T >
libMesh::Predicates::movable_il< T >::movable_il ( T &&  in)
inline

Construct from rvalue reference of type T.

Definition at line 131 of file multi_predicates.h.

131 : t(std::move(in)) {}

◆ movable_il() [2/2]

template<class T >
template<typename U >
libMesh::Predicates::movable_il< T >::movable_il ( U &&  in)
inline

Construct from rvalue reference of type U, using forwarding.

Definition at line 137 of file multi_predicates.h.

137 : t(std::forward<U>(in)) {}

Member Function Documentation

◆ operator T()

template<class T >
libMesh::Predicates::movable_il< T >::operator T ( ) const &&
inline

Return an rvalue reference to ourself.

Definition at line 142 of file multi_predicates.h.

References libMesh::Predicates::movable_il< T >::t.

142 { return std::move(t); }

Member Data Documentation

◆ t

template<class T >
T libMesh::Predicates::movable_il< T >::t
mutable

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