tlx
NoOperation< ReturnType > Class Template Reference

The noop functor, which takes any arguments and does nothing. More...

#include <no_operation.hpp>

Public Member Functions

 NoOperation (ReturnType return_value=ReturnType())
 
ReturnType operator() (...) const noexcept
 

Protected Attributes

ReturnType return_value_
 

Detailed Description

template<typename ReturnType>
class tlx::NoOperation< ReturnType >

The noop functor, which takes any arguments and does nothing.

This is a good default argument for lambda function parameters.

Definition at line 22 of file no_operation.hpp.

Constructor & Destructor Documentation

NoOperation ( ReturnType  return_value = ReturnType())
inlineexplicit

Definition at line 25 of file no_operation.hpp.

Member Function Documentation

ReturnType operator() (   ...) const
inlinenoexcept

Definition at line 28 of file no_operation.hpp.

Member Data Documentation

ReturnType return_value_
protected

Definition at line 33 of file no_operation.hpp.


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