BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
std::formatter< chess::board::Rank > Struct Referencefinal

#include <libchess/board/Rank.hpp>

Public Member Functions

template<typename FormatContext>
auto format (const chess::board::Rank rank, FormatContext &ctx) const -> typename FormatContext::iterator
template<typename ParseContext>
constexpr auto parse (ParseContext &ctx) -> typename ParseContext::iterator

Detailed Description

A formatter specialization for chessboard ranks. The formatter accepts no arguments; ranks are always printed as integers, except starting from 1 instead of 0.

See also
chess::board::Rank

Definition at line 97 of file Rank.hpp.

Member Function Documentation

◆ format()

template<typename FormatContext>
auto std::formatter< chess::board::Rank >::format ( const chess::board::Rank rank,
FormatContext & ctx ) const -> typename FormatContext::iterator
inline

Definition at line 105 of file Rank.hpp.

◆ parse()

template<typename ParseContext>
auto std::formatter< chess::board::Rank >::parse ( ParseContext & ctx) -> typename ParseContext::iterator
inlineconstexpr

Definition at line 99 of file Rank.hpp.


The documentation for this struct was generated from the following file:
  • libchess/include/libchess/board/Rank.hpp