Skip to content

Commit 2e82327

Browse files
jensmaurerzygoloid
authored andcommitted
Various small fixes relative to the ingress paper.
[time.hms.members] Rephrased note. [time.hms.overview] Removed redundant declaration of operator<<. [time.hms.overview] Moved exposition-only data members to the bottom.
1 parent 147f575 commit 2e82327

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

source/time.tex

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,7 @@
747747

748748
template<class charT, class traits, class Duration>
749749
basic_ostream<charT, traits>&
750-
operator<<(basic_ostream<charT, traits>& os,
751-
const hh_mm_ss<Duration>& t);
750+
operator<<(basic_ostream<charT, traits>& os, const hh_mm_ss<Duration>& t);
752751

753752
// \ref{time.12}, 12/24 hour functions
754753
constexpr bool is_am(const hours& h) noexcept;
@@ -7797,15 +7796,7 @@
77977796

77987797
\begin{codeblock}
77997798
namespace std::chrono {
7800-
template <class Duration>
7801-
class hh_mm_ss
7802-
{
7803-
bool is_neg; // \expos
7804-
chrono::hours h; // \expos
7805-
chrono::minutes m; // \expos
7806-
chrono::seconds s; // \expos
7807-
precision ss; // \expos
7808-
7799+
template <class Duration> class hh_mm_ss {
78097800
public:
78107801
static unsigned constexpr fractional_width = @\seebelow@;
78117802
using precision = @\seebelow@;
@@ -7821,11 +7812,14 @@
78217812

78227813
constexpr explicit operator precision() const noexcept;
78237814
constexpr precision to_duration() const noexcept;
7824-
};
78257815

7826-
template <class charT, class traits, class Duration>
7827-
basic_ostream<charT, traits>&
7828-
operator<<(basic_ostream<charT, traits>& os, hh_mm_ss<Duration> const& hms);
7816+
private:
7817+
bool is_neg; // \expos
7818+
chrono::hours h; // \expos
7819+
chrono::minutes m; // \expos
7820+
chrono::seconds s; // \expos
7821+
precision ss; // \expos
7822+
};
78297823
}
78307824
\end{codeblock}
78317825

@@ -7942,8 +7936,9 @@
79427936
with \tcode{duration_cast<precision>(abs(d) - hours() - minutes() - seconds())}.
79437937
\end{itemize}
79447938
\begin{note}
7945-
When \tcode{precision} is \tcode{seconds} with integral representation,
7946-
\tcode{subseconds()} always returns \tcode{0s}.
7939+
When \tcode{precision::rep} is integral and
7940+
\tcode{precision::period} is \tcode{ratio<1>},
7941+
\tcode{subseconds()} always returns a value equal to \tcode{0s}.
79477942
\end{note}
79487943

79497944
\pnum

0 commit comments

Comments
 (0)