Skip to content

Commit adc2589

Browse files
Add constexpr to test signatures
1 parent 69bb9d3 commit adc2589

File tree

74 files changed

+134
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+134
-123
lines changed

libcxx/test/std/containers/associative/map/map.access/at.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
// class map
1212

13-
// mapped_type& at(const key_type& k); // constexpr since C++26
14-
// const mapped_type& at(const key_type& k) const; // constexpr since C++26
13+
// constexpr mapped_type& at(const key_type& k); // constexpr since C++26
14+
// constexpr const mapped_type& at(const key_type& k) const; // constexpr since C++26
1515

1616
#include <cassert>
1717
#include <map>

libcxx/test/std/containers/associative/map/map.access/empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// class map
1212

13-
// bool empty() const;// constexpr since C++26
13+
// constexpr bool empty() const; // constexpr since C++26
1414

1515
#include <map>
1616
#include <cassert>

libcxx/test/std/containers/associative/map/map.access/index_key.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// class map
1212

13-
// mapped_type& operator[](const key_type& k);// constexpr since C++26
13+
// constexpr mapped_type& operator[](const key_type& k); // constexpr since C++26
1414

1515
#include <map>
1616
#include <cassert>

libcxx/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// class map
1414

15-
// mapped_type& operator[](key_type&& k);// constexpr since C++26
15+
// constexpr mapped_type& operator[](key_type&& k); // constexpr since C++26
1616

1717
#include <map>
1818
#include <cassert>

libcxx/test/std/containers/associative/map/map.access/index_tuple.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// class map
1414

15-
// mapped_type& operator[](const key_type& k);// constexpr since C++26
15+
// constexpr mapped_type& operator[](const key_type& k); // constexpr since C++26
1616

1717
// https://llvm.org/PR16542
1818

libcxx/test/std/containers/associative/map/map.access/iterator.pass.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010

1111
// class map
1212

13-
// iterator begin();// constexpr since C++26
14-
// const_iterator begin() const;// constexpr since C++26
15-
// iterator end();// constexpr since C++26
16-
// const_iterator end() const;// constexpr since C++26
13+
// constexpr iterator begin(); // constexpr since C++26
14+
// constexpr const_iterator begin() const; // constexpr since C++26
15+
// constexpr iterator end(); // constexpr since C++26
16+
// constexpr const_iterator end() const; // constexpr since C++26
1717
//
18-
// reverse_iterator rbegin();// constexpr since C++26
19-
// const_reverse_iterator rbegin() const;// constexpr since C++26
20-
// reverse_iterator rend();// constexpr since C++26
21-
// const_reverse_iterator rend() const;// constexpr since C++26
18+
// constexpr reverse_iterator rbegin(); // constexpr since C++26
19+
// constexpr const_reverse_iterator rbegin() const; // constexpr since C++26
20+
// constexpr reverse_iterator rend(); // constexpr since C++26
21+
// constexpr const_reverse_iterator rend() const; // constexpr since C++26
2222
//
23-
// const_iterator cbegin() const;// constexpr since C++26
24-
// const_iterator cend() const;// constexpr since C++26
25-
// const_reverse_iterator crbegin() const;// constexpr since C++26
26-
// const_reverse_iterator crend() const;// constexpr since C++26
23+
// constexpr const_iterator cbegin() const; // constexpr since C++26
24+
// constexpr const_iterator cend() const; // constexpr since C++26
25+
// constexpr const_reverse_iterator crbegin() const; // constexpr since C++26
26+
// constexpr const_reverse_iterator crend() const; // constexpr since C++26
2727

2828
#include <map>
2929
#include <cassert>

libcxx/test/std/containers/associative/map/map.access/max_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// class map
1212

13-
// size_type max_size() const;// constexpr since C++26
13+
// constexpr size_type max_size() const; // constexpr since C++26
1414

1515
#include <cassert>
1616
#include <limits>

libcxx/test/std/containers/associative/map/map.access/size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// class map
1212

13-
// size_type size() const;// constexpr since C++26
13+
// constexpr size_type size() const; // constexpr since C++26
1414

1515
#include <map>
1616
#include <cassert>

libcxx/test/std/containers/associative/map/map.cons/alloc.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// class map
1212

13-
// explicit map(const allocator_type& a); // constexpr since C++26
13+
// constexpr explicit map(const allocator_type& a); // constexpr since C++26
1414

1515
#include <map>
1616
#include <cassert>

libcxx/test/std/containers/associative/map/map.cons/assign_initializer_list.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// class map
1414

15-
// map& operator=(initializer_list<value_type> il);// constexpr since C++26
15+
// constexpr map& operator=(initializer_list<value_type> il); // constexpr since C++26
1616

1717
#include <map>
1818
#include <cassert>

0 commit comments

Comments
 (0)