@@ -99,12 +99,12 @@ using ContainerPointerType =
99
99
// These are meant for internal use only.
100
100
101
101
template <typename C>
102
- ABSL_CONSTEXPR_SINCE_CXX17 ContainerIter<C> c_begin (C& c) {
102
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17 ContainerIter<C> c_begin (C& c) {
103
103
return begin (c);
104
104
}
105
105
106
106
template <typename C>
107
- ABSL_CONSTEXPR_SINCE_CXX17 ContainerIter<C> c_end (C& c) {
107
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17 ContainerIter<C> c_end (C& c) {
108
108
return end (c);
109
109
}
110
110
@@ -147,7 +147,7 @@ bool c_linear_search(const C& c, EqualityComparable&& value) {
147
147
// Container-based version of the <iterator> `std::distance()` function to
148
148
// return the number of elements within a container.
149
149
template <typename C>
150
- ABSL_CONSTEXPR_SINCE_CXX17
150
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
151
151
container_algorithm_internal::ContainerDifferenceType<const C>
152
152
c_distance (const C& c) {
153
153
return std::distance (container_algorithm_internal::c_begin (c),
@@ -1533,17 +1533,19 @@ c_is_heap_until(RandomAccessContainer& sequence, LessThan&& comp) {
1533
1533
// to return an iterator pointing to the element with the smallest value, using
1534
1534
// `operator<` to make the comparisons.
1535
1535
template <typename Sequence>
1536
- container_algorithm_internal::ContainerIter<Sequence> c_min_element (
1537
- Sequence& sequence) {
1536
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1537
+ container_algorithm_internal::ContainerIter<Sequence>
1538
+ c_min_element (Sequence& sequence) {
1538
1539
return std::min_element (container_algorithm_internal::c_begin (sequence),
1539
1540
container_algorithm_internal::c_end (sequence));
1540
1541
}
1541
1542
1542
1543
// Overload of c_min_element() for performing a `comp` comparison other than
1543
1544
// `operator<`.
1544
1545
template <typename Sequence, typename LessThan>
1545
- container_algorithm_internal::ContainerIter<Sequence> c_min_element (
1546
- Sequence& sequence, LessThan&& comp) {
1546
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1547
+ container_algorithm_internal::ContainerIter<Sequence>
1548
+ c_min_element (Sequence& sequence, LessThan&& comp) {
1547
1549
return std::min_element (container_algorithm_internal::c_begin (sequence),
1548
1550
container_algorithm_internal::c_end (sequence),
1549
1551
std::forward<LessThan>(comp));
@@ -1555,17 +1557,19 @@ container_algorithm_internal::ContainerIter<Sequence> c_min_element(
1555
1557
// to return an iterator pointing to the element with the largest value, using
1556
1558
// `operator<` to make the comparisons.
1557
1559
template <typename Sequence>
1558
- container_algorithm_internal::ContainerIter<Sequence> c_max_element (
1559
- Sequence& sequence) {
1560
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1561
+ container_algorithm_internal::ContainerIter<Sequence>
1562
+ c_max_element (Sequence& sequence) {
1560
1563
return std::max_element (container_algorithm_internal::c_begin (sequence),
1561
1564
container_algorithm_internal::c_end (sequence));
1562
1565
}
1563
1566
1564
1567
// Overload of c_max_element() for performing a `comp` comparison other than
1565
1568
// `operator<`.
1566
1569
template <typename Sequence, typename LessThan>
1567
- container_algorithm_internal::ContainerIter<Sequence> c_max_element (
1568
- Sequence& sequence, LessThan&& comp) {
1570
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1571
+ container_algorithm_internal::ContainerIter<Sequence>
1572
+ c_max_element (Sequence& sequence, LessThan&& comp) {
1569
1573
return std::max_element (container_algorithm_internal::c_begin (sequence),
1570
1574
container_algorithm_internal::c_end (sequence),
1571
1575
std::forward<LessThan>(comp));
@@ -1578,17 +1582,19 @@ container_algorithm_internal::ContainerIter<Sequence> c_max_element(
1578
1582
// smallest and largest values, respectively, using `operator<` to make the
1579
1583
// comparisons.
1580
1584
template <typename C>
1581
- container_algorithm_internal::ContainerIterPairType<C, C> c_minmax_element (
1582
- C& c) {
1585
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1586
+ container_algorithm_internal::ContainerIterPairType<C, C>
1587
+ c_minmax_element (C& c) {
1583
1588
return std::minmax_element (container_algorithm_internal::c_begin (c),
1584
1589
container_algorithm_internal::c_end (c));
1585
1590
}
1586
1591
1587
1592
// Overload of c_minmax_element() for performing `comp` comparisons other than
1588
1593
// `operator<`.
1589
1594
template <typename C, typename LessThan>
1590
- container_algorithm_internal::ContainerIterPairType<C, C> c_minmax_element (
1591
- C& c, LessThan&& comp) {
1595
+ ABSL_INTERNAL_CONSTEXPR_SINCE_CXX17
1596
+ container_algorithm_internal::ContainerIterPairType<C, C>
1597
+ c_minmax_element (C& c, LessThan&& comp) {
1592
1598
return std::minmax_element (container_algorithm_internal::c_begin (c),
1593
1599
container_algorithm_internal::c_end (c),
1594
1600
std::forward<LessThan>(comp));
0 commit comments