Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::resource_limits::impl::ratio< T > Struct Template Reference

#include <resource_limits.hpp>

Public Attributes

T numerator
 
T denominator
 

Friends

bool operator== (const ratio &lhs, const ratio &rhs)
 
bool operator!= (const ratio &lhs, const ratio &rhs)
 

Detailed Description

template<typename T>
struct sysio::chain::resource_limits::impl::ratio< T >

Definition at line 17 of file resource_limits.hpp.

Friends And Related Symbol Documentation

◆ operator!=

template<typename T >
bool operator!= ( const ratio< T > & lhs,
const ratio< T > & rhs )
friend

Definition at line 26 of file resource_limits.hpp.

26 {
27 return !(lhs == rhs);
28 }

◆ operator==

template<typename T >
bool operator== ( const ratio< T > & lhs,
const ratio< T > & rhs )
friend

Definition at line 22 of file resource_limits.hpp.

22 {
23 return std::tie(lhs.numerator, lhs.denominator) == std::tie(rhs.numerator, rhs.denominator);
24 }

Member Data Documentation

◆ denominator

template<typename T >
T sysio::chain::resource_limits::impl::ratio< T >::denominator

Definition at line 20 of file resource_limits.hpp.

◆ numerator

template<typename T >
T sysio::chain::resource_limits::impl::ratio< T >::numerator

Definition at line 19 of file resource_limits.hpp.


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