algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
std::hash< algotradelib::OrderRef< Broker > > Struct Template Reference

Hashes an order reference, so it can key an unordered container. More...

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

Public Member Functions

std::size_t operator() (const algotradelib::OrderRef< Broker > &ref) const noexcept
 Hashes both parts of the reference.

Detailed Description

template<typename Broker>
struct std::hash< algotradelib::OrderRef< Broker > >

Hashes an order reference, so it can key an unordered container.

Template Parameters
BrokerThe broker tag.

Definition at line 2599 of file types.hpp.

Member Function Documentation

◆ operator()()

template<typename Broker>
std::size_t std::hash< algotradelib::OrderRef< Broker > >::operator() ( const algotradelib::OrderRef< Broker > & ref) const
inlinenoexcept

Hashes both parts of the reference.

Parameters
refThe reference.
Returns
The hash.

Definition at line 2605 of file types.hpp.


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