Skip to content

Commit d746c0d

Browse files
committed
[bitset] Minor whitespace adjustments
To increase overall consistency. Long function signatures are rare, but when they occur we will try to use consistent indent and continuation style. Clause [re] has comparably complex signatures. Also adjusts comment columns.
1 parent fc9599a commit d746c0d

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

source/utilities.tex

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6108,13 +6108,14 @@
61086108
class reference {
61096109
friend class bitset;
61106110
reference() noexcept;
6111+
61116112
public:
61126113
~reference() noexcept;
6113-
reference& operator=(bool x) noexcept; // for \tcode{b[i] = x;}
6114-
reference& operator=(const reference&) noexcept; // for \tcode{b[i] = b[j];}
6115-
bool operator~() const noexcept; // flips the bit
6116-
operator bool() const noexcept; // for \tcode{x = b[i];}
6117-
reference& flip() noexcept; // for \tcode{b[i].flip();}
6114+
reference& operator=(bool x) noexcept; // for \tcode{b[i] = x;}
6115+
reference& operator=(const reference&) noexcept; // for \tcode{b[i] = b[j];}
6116+
bool operator~() const noexcept; // flips the bit
6117+
operator bool() const noexcept; // for \tcode{x = b[i];}
6118+
reference& flip() noexcept; // for \tcode{b[i].flip();}
61186119
};
61196120

61206121
// \ref{bitset.cons}, constructors
@@ -6124,8 +6125,8 @@
61246125
explicit bitset(
61256126
const basic_string<charT, traits, Allocator>& str,
61266127
typename basic_string<charT, traits, Allocator>::size_type pos = 0,
6127-
typename basic_string<charT, traits, Allocator>::size_type n =
6128-
basic_string<charT, traits, Allocator>::npos,
6128+
typename basic_string<charT, traits, Allocator>::size_type n
6129+
= basic_string<charT, traits, Allocator>::npos,
61296130
charT zero = charT('0'),
61306131
charT one = charT('1'));
61316132
template <class charT>
@@ -6150,8 +6151,8 @@
61506151
bitset<N>& flip(size_t pos);
61516152

61526153
// element access:
6153-
constexpr bool operator[](size_t pos) const; // for \tcode{b[i];}
6154-
reference operator[](size_t pos); // for \tcode{b[i];}
6154+
constexpr bool operator[](size_t pos) const; // for \tcode{b[i];}
6155+
reference operator[](size_t pos); // for \tcode{b[i];}
61556156

61566157
unsigned long to_ulong() const;
61576158
unsigned long long to_ullong() const;
@@ -6262,12 +6263,13 @@
62626263
\indexlibrary{\idxcode{bitset}!constructor}%
62636264
\begin{itemdecl}
62646265
template <class charT, class traits, class Allocator>
6265-
explicit
6266-
bitset(const basic_string<charT, traits, Allocator>& str,
6267-
typename basic_string<charT, traits, Allocator>::size_type pos = 0,
6268-
typename basic_string<charT, traits, Allocator>::size_type n =
6269-
basic_string<charT, traits, Allocator>::npos,
6270-
charT zero = charT('0'), charT one = charT('1'));
6266+
explicit bitset(
6267+
const basic_string<charT, traits, Allocator>& str,
6268+
typename basic_string<charT, traits, Allocator>::size_type pos = 0,
6269+
typename basic_string<charT, traits, Allocator>::size_type n
6270+
= basic_string<charT, traits, Allocator>::npos,
6271+
charT zero = charT('0'),
6272+
charT one = charT('1'));
62716273
\end{itemdecl}
62726274

62736275
\begin{itemdescr}
@@ -6320,20 +6322,19 @@
63206322
explicit bitset(
63216323
const charT* str,
63226324
typename basic_string<charT>::size_type n = basic_string<charT>::npos,
6323-
charT zero = charT('0'), charT one = charT('1'));
6325+
charT zero = charT('0'),
6326+
charT one = charT('1'));
63246327
\end{itemdecl}
63256328

63266329
\begin{itemdescr}
63276330
\pnum
63286331
\effects Constructs an object of class \tcode{bitset<N>} as if by:
63296332
\begin{codeblock}
6330-
bitset(
6331-
n == basic_string<charT>::npos
6332-
? basic_string<charT>(str)
6333-
: basic_string<charT>(str, n),
6334-
0, n, zero, one)
6333+
bitset(n == basic_string<charT>::npos
6334+
? basic_string<charT>(str)
6335+
: basic_string<charT>(str, n),
6336+
0, n, zero, one)
63356337
\end{codeblock}
6336-
63376338
\end{itemdescr}
63386339

63396340

@@ -6618,10 +6619,10 @@
66186619
\indexlibrarymember{to_string}{bitset}%
66196620
\begin{itemdecl}
66206621
template <class charT = char,
6621-
class traits = char_traits<charT>,
6622-
class Allocator = allocator<charT>>
6622+
class traits = char_traits<charT>,
6623+
class Allocator = allocator<charT>>
66236624
basic_string<charT, traits, Allocator>
6624-
to_string(charT zero = charT('0'), charT one = charT('1')) const;
6625+
to_string(charT zero = charT('0'), charT one = charT('1')) const;
66256626
\end{itemdecl}
66266627

66276628
\begin{itemdescr}
@@ -6866,7 +6867,7 @@
68666867
\begin{itemdecl}
68676868
template <class charT, class traits, size_t N>
68686869
basic_istream<charT, traits>&
6869-
operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
6870+
operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
68706871
\end{itemdecl}
68716872

68726873
\begin{itemdescr}
@@ -6911,7 +6912,7 @@
69116912
\begin{itemdecl}
69126913
template <class charT, class traits, size_t N>
69136914
basic_ostream<charT, traits>&
6914-
operator<<(basic_ostream<charT, traits>& os, const bitset<N>& x);
6915+
operator<<(basic_ostream<charT, traits>& os, const bitset<N>& x);
69156916
\end{itemdecl}
69166917

69176918
\begin{itemdescr}

0 commit comments

Comments
 (0)