File indexing completed on 2025-07-11 08:17:55
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_MYSQL_IMPL_DATE_IPP
0009 #define BOOST_MYSQL_IMPL_DATE_IPP
0010
0011 #pragma once
0012
0013 #include <boost/mysql/date.hpp>
0014 #include <boost/mysql/string_view.hpp>
0015
0016 #include <boost/mysql/impl/internal/dt_to_string.hpp>
0017
0018 #include <cstddef>
0019 #include <ostream>
0020
0021 std::ostream& boost::mysql::operator<<(std::ostream& os, const date& value)
0022 {
0023 char buffer[32]{};
0024 std::size_t sz = detail::date_to_string(value.year(), value.month(), value.day(), buffer);
0025 return os << string_view(buffer, sz);
0026 }
0027
0028 #endif