mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 20:27:03 +00:00
Update docs
This commit is contained in:
parent
f055ebbd25
commit
a5a7e3a261
@ -507,6 +507,8 @@ user-defined types that have an overloaded insertion operator (``operator<<``)::
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <> struct fmt::formatter<date> : ostream_formatter<date> {};
|
||||||
|
|
||||||
std::string s = fmt::format("The date is {}", date(2012, 12, 9));
|
std::string s = fmt::format("The date is {}", date(2012, 12, 9));
|
||||||
// s == "The date is 2012-12-9"
|
// s == "The date is 2012-12-9"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user