BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches

Namespaces

namespace  detail
namespace  files
namespace  math
namespace  memory
namespace  strings

Classes

struct  Visitor

Concepts

concept  ChronoDuration

Typedefs

template<ChronoDuration Duration, std::floating_point F = float>
using FractionalDuration = std::chrono::duration<F, typename Duration::period>

Functions

void enable_utf8_console_output ()
void progressive_backoff (std::function< bool()> pred)
auto start_file_logger (const std::filesystem::path &logFile) -> std::expected< void, std::string >

Detailed Description

This namespace contains generic utilities.

This namespace provides general utilities not specific to chess.

Typedef Documentation

◆ FractionalDuration

template<ChronoDuration Duration, std::floating_point F = float>
using util::FractionalDuration = std::chrono::duration<F, typename Duration::period>

This typedef allows converting a chrono duration to one with the same period, but with a floating-point tick type.

Example usage:

PartialSeconds secs { 1.5f };
std::chrono::duration< F, typename Duration::period > FractionalDuration
Definition Chrono.hpp:53

Definition at line 53 of file Chrono.hpp.