class bool_format


class bool_format

Public Member Functions

bool_format ()
noexcept

Construct a default bool format, where the true string is u8"1" and the false string is u8"0".

bool_format (
    const std::u8string& initial_true_string,
    const std::u8string& initial_false_string
)

Construct a bool format with the given true string and false string.

Parameters:
  • initial_true_string:

    The string to use when the bool value is true.

  • initial_false_string:

    The string to use when the bool value is false.

bool_format (
    const bool_format& other
)
= default

Copy-constructs a bool_format from an existing one.

Parameters:
  • other:

    The bool_format to copy from.

bool_format&
operator = (
    const bool_format& other
)
= default

Copy-assigns a bool_format into this one.

Parameters:
  • other:

    The bool_format to copy from.

bool_format (
    bool_format&& other
)
noexcept = default

Move-constructs a bool_format from an existing one.

Parameters:
  • other:

    The bool_format to move from.

bool_format&
operator = (
    bool_format&& other
)
noexcept = default

Move-assigns a bool_format into this one.

Parameters:
  • other:

    The bool_format to move from.

std::u8string
get_true_string ()
const noexcept

Returns the true string of this bool format.

void
set_true_string (
    const std::u8string& new_true_string
)
noexcept

Sets the true string of this bool format.

Parameters:
  • new_true_string:

    The new true string of this bool format.

std::u8string
get_false_string ()
const noexcept

Returns the false string of this bool format.

void
set_false_string (
    const std::u8string& new_false_string
)
noexcept

Sets the false string of this bool format.

Parameters:
  • new_false_string:

    The new false string of this bool format.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2022.