Skip to content

Commit 8090054

Browse files
committed
[template.bitset.general][vector.bool.pspc] Reorder reference members
Reorder the members of `reference` classes to be consistent with each other and elsewhere. First list constructors, destructor, and assignment operator. Then list accessors, and finally modifiers. Keep unary `operator~` adjacent to `flip` where both are present.
1 parent f9d8774 commit 8090054

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10482,10 +10482,10 @@
1048210482
public:
1048310483
constexpr reference(const reference& x) noexcept;
1048410484
constexpr ~reference();
10485-
constexpr operator bool() const noexcept;
1048610485
constexpr reference& operator=(bool x) noexcept;
1048710486
constexpr reference& operator=(const reference& x) noexcept;
1048810487
constexpr const reference& operator=(bool x) const noexcept;
10488+
constexpr operator bool() const noexcept;
1048910489
constexpr void flip() noexcept; // flips the bit
1049010490

1049110491
friend constexpr void swap(reference x, reference y) noexcept;

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10414,8 +10414,8 @@
1041410414
constexpr reference& operator=(bool x) noexcept; // for \tcode{b[i] = x;}
1041510415
constexpr reference& operator=(const reference& x) noexcept; // for \tcode{b[i] = b[j];}
1041610416
constexpr const reference& operator=(bool x) const noexcept;
10417-
constexpr bool operator~() const noexcept; // flips the bit
1041810417
constexpr operator bool() const noexcept; // for \tcode{x = b[i];}
10418+
constexpr bool operator~() const noexcept; // flips the bit
1041910419
constexpr reference& flip() noexcept; // for \tcode{b[i].flip();}
1042010420

1042110421
friend constexpr void swap(reference x, reference y) noexcept;

0 commit comments

Comments
 (0)