xieite ::term ::strike_code ()
Defined in header <xieite/io/term.hpp>
Returns a
std ::string
which enables or disables striked-through text when printed.Declaration
[[nodiscard ]]static constexpr std ::string strike_code (bool x )noexcept ;
Example
Possible output:int main () {std ::println (" ,{} Hello, world!"xieite ::term ::strike_code (true )); }
[View in Compiler Explorer]Hello, world!