BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlf::NoOp Class Reference

#include <bdlf_noop.h>

Public Types

typedef void result_type
 

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (NoOp, bsl::is_trivially_copyable)
 
template<class... t_ARGS>
BSLS_KEYWORD_CONSTEXPR_CPP14 void operator() (const t_ARGS &... ignored) const BSLS_KEYWORD_NOEXCEPT
 Do nothing and ignore all specified ignored arguments.
 
template<class... t_ARGS>
BSLS_KEYWORD_CONSTEXPR_CPP14 void operator() (BSLA_MAYBE_UNUSED const t_ARGS &...ignored) const BSLS_KEYWORD_NOEXCEPT
 

Detailed Description

This functor class provides a function-call operator that accepts any number of arguments of any type, does nothing (leaving the arguments unmodified), and returns void.

See bdlf_noop

Member Typedef Documentation

◆ result_type

result_type is an alias to void, which is the type returned by the function-call operator of this class

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

bdlf::NoOp::BSLMF_NESTED_TRAIT_DECLARATION ( NoOp  ,
bsl::is_trivially_copyable   
)

◆ operator()() [1/2]

template<class... t_ARGS>
BSLS_KEYWORD_CONSTEXPR_CPP14 void bdlf::NoOp::operator() ( BSLA_MAYBE_UNUSED const t_ARGS &...  ignored) const

◆ operator()() [2/2]

template<class... t_ARGS>
BSLS_KEYWORD_CONSTEXPR_CPP14 void bdlf::NoOp::operator() ( const t_ARGS &...  ignored) const
inline

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