algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::conformance::MoveOnlyCallback Struct Reference

A plain callback that cannot be copied. More...

#include <algotradelib/src/core/broker_verbs.hpp>

Public Member Functions

 MoveOnlyCallback ()=default
 Constructs the callback.
 MoveOnlyCallback (MoveOnlyCallback &&)=default
 Move constructor (the callback has no state).
MoveOnlyCallback & operator= (MoveOnlyCallback &&)=default
 Move assignment.
 MoveOnlyCallback (const MoveOnlyCallback &)=delete
MoveOnlyCallback & operator= (const MoveOnlyCallback &)=delete
template<typename T>
void operator() (T)
 Accepts and discards any completion argument.

Detailed Description

A plain callback that cannot be copied.

Definition at line 44 of file broker_verbs.hpp.

Constructor & Destructor Documentation

◆ MoveOnlyCallback()

algotradelib::conformance::MoveOnlyCallback::MoveOnlyCallback ( )
default

Constructs the callback.

Referenced by MoveOnlyCallback(), and operator=().

Member Function Documentation

◆ operator()()

template<typename T>
void algotradelib::conformance::MoveOnlyCallback::operator() ( T )
inline

Accepts and discards any completion argument.

Template Parameters
TThe argument type.

Definition at line 62 of file broker_verbs.hpp.

◆ operator=()

MoveOnlyCallback & algotradelib::conformance::MoveOnlyCallback::operator= ( MoveOnlyCallback && )
default

Move assignment.

Returns
*this.

Referenced by operator=().


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