|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
A request parameter that must be set. More...
#include <required.hpp>
Public Member Functions | |
| Required ()=delete | |
| Required (T value) noexcept(std::is_nothrow_move_constructible_v< T >) | |
| template<class U> requires (!std::same_as<std::remove_cvref_t<U>, Required> && !std::same_as<std::remove_cvref_t<U>, T> && std::convertible_to<U, T>) | |
| Required (U &&value) | |
| Required (std::initializer_list< Element > values) | |
| const T & | operator* () const &noexcept |
| T & | operator* () &noexcept |
| T && | operator* () &&noexcept |
| const T * | operator-> () const noexcept |
| T * | operator-> () noexcept |
| operator const T & () const noexcept | |
Friends | |
| bool | operator== (const Required &a, const Required &b) |
A request parameter that must be set.
It has no default value, so leaving it out of a designated initializer is a compile error:
NewOrderParams params{.symbol = "BNBUSDT", .side = NewOrderSideEnum::Buy,
.type = NewOrderTypeEnum::Market};
It converts implicitly to const T&; use * or -> to reach the value directly.
|
delete |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |