Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
fixed_string.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <cstring>
#include <format>
#include <ostream>
#include <string>
#include <string_view>
Include dependency graph for fixed_string.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  slick::sim::utils::fixed_string< N >
 A null-terminated character buffer of fixed capacity, stored inline. More...
struct  slick::sim::utils::StringViewHash
 Transparent hash/equality for maps keyed by fixed_string. More...
struct  slick::sim::utils::StringViewEq
struct  std::formatter< slick::sim::utils::fixed_string< N >, CharT >
 Lets fixed_string drop into std::format and therefore into every LOG_* call, which slick-logger routes through std::format. More...

Namespaces

namespace  slick
namespace  slick::sim
namespace  slick::sim::utils
 Conversions between wire decimals with a constant exponent of -9 (CME PRICE9, ICE Decimal9) and the simulator's 1e-8 fixed point.

Functions

template<size_t N>
bool slick::sim::utils::copy_wire_field (char(&dst)[N], std::string_view src) noexcept
 Copies a name into a fixed-width wire field.