Thrill  0.1
NoOperation< ReturnType > Class Template Reference

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.

#include <no_operation.hpp>

Public Member Functions

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

Protected Attributes

ReturnType return_value_
 

Constructor & Destructor Documentation

◆ NoOperation()

NoOperation ( ReturnType  return_value = ReturnType())
inlineexplicit

Definition at line 25 of file no_operation.hpp.

Member Function Documentation

◆ operator()()

ReturnType operator() (   ...) const
inlinenoexcept

Definition at line 28 of file no_operation.hpp.

References NoOperation< ReturnType >::return_value_.

Member Data Documentation

◆ return_value_

ReturnType return_value_
protected

Definition at line 33 of file no_operation.hpp.

Referenced by NoOperation< ReturnType >::operator()().


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