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

#include <libchess/board/Square.hpp>

Public Member Functions

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

Detailed Description

A formatter specialization for Square objects. The formatter accepts no arguments; squares are always printed in algebraic notation, such as a4, b2, etc.

See also
chess::board::Square

Definition at line 156 of file Square.hpp.

Member Function Documentation

◆ format()

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

Definition at line 164 of file Square.hpp.

◆ parse()

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

Definition at line 158 of file Square.hpp.


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