mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
style: add comment to test::operator<<
This commit is contained in:
@@ -25,6 +25,11 @@ using test_value_types = std::tuple<
|
|||||||
|
|
||||||
namespace test
|
namespace test
|
||||||
{
|
{
|
||||||
|
// to compare result values in BOOST_TEST().
|
||||||
|
//
|
||||||
|
// BOOST_TEST outputs the expected and actual values. Thus it includes the
|
||||||
|
// output stream operator inside. To compile it, we need operator<<s for
|
||||||
|
// containers to compare.
|
||||||
template<typename charT, typename traits, typename T, typename Alloc>
|
template<typename charT, typename traits, typename T, typename Alloc>
|
||||||
std::basic_ostream<charT, traits>&
|
std::basic_ostream<charT, traits>&
|
||||||
operator<<(std::basic_ostream<charT, traits>& os, const std::vector<T, Alloc>& v)
|
operator<<(std::basic_ostream<charT, traits>& os, const std::vector<T, Alloc>& v)
|
||||||
|
Reference in New Issue
Block a user