Support Class Library
A set of tools providing classes and utility
Public Member Functions | List of all members
scl::utils::Placeholder Struct Referencefinal

Class representing parameter/return argument placholders. More...

#include "Placeholder.h"

Public Member Functions

constexpr Placeholder ()=default
 
constexpr Placeholder (const Placeholder &)=default
 
constexpr Placeholder (Placeholder &&)=default
 
Placeholderoperator= (const Placeholder &)=default
 
Placeholderoperator= (Placeholder &&)=default
 
 ~Placeholder ()=default
 
template<class T >
constexpr Placeholder (T &&)
 Construct a placeholder from any kind of data. More...
 
template<class T >
constexpr const Placeholderoperator= (T &&) const
 Assign to a placeholder. More...
 

Detailed Description

Class representing parameter/return argument placholders.

Warning
Uses with std::unique_ptr and similar may result in dangling pointers

Definition at line 9 of file Placeholder.h.

Constructor & Destructor Documentation

◆ Placeholder() [1/4]

constexpr scl::utils::Placeholder::Placeholder ( )
default

◆ Placeholder() [2/4]

constexpr scl::utils::Placeholder::Placeholder ( const Placeholder )
default

◆ Placeholder() [3/4]

constexpr scl::utils::Placeholder::Placeholder ( Placeholder &&  )
default

◆ ~Placeholder()

scl::utils::Placeholder::~Placeholder ( )
default

◆ Placeholder() [4/4]

template<class T >
constexpr scl::utils::Placeholder::Placeholder ( T &&  )
inline

Construct a placeholder from any kind of data.

Template Parameters
Tbeing the type of the data to omit

Definition at line 22 of file Placeholder.h.

Member Function Documentation

◆ operator=() [1/3]

Placeholder& scl::utils::Placeholder::operator= ( const Placeholder )
default

◆ operator=() [2/3]

Placeholder& scl::utils::Placeholder::operator= ( Placeholder &&  )
default

◆ operator=() [3/3]

template<class T >
constexpr const Placeholder& scl::utils::Placeholder::operator= ( T &&  ) const
inline

Assign to a placeholder.

Template Parameters
Tbeing the type of the data to omit
Returns
a reference to this placeholder

Definition at line 30 of file Placeholder.h.


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