Skip to content

Commit 1edfaa9

Browse files
arturbacArtur Bać
and
Artur Bać
authoredJan 14, 2025··
trivial_abi, nodiscard (#21)
* trivial_abi, nodiscard - sets trivial_abi attribute on basic string and fixed string - sets nodiscard on expected - renames namespace to v3_3 * fix build --------- Co-authored-by: Artur Bać <artur@ebasoft.com.pl>
1 parent c4c5f47 commit 1edfaa9

Some content is hidden

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

43 files changed

+155
-147
lines changed
 

‎include/small_vectors/algo/bound_leaning_lower_bound.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <iterator>
66

77
/// \brief Burrows–Wheeler transform
8-
namespace small_vectors::inline v3_2::algo::lower_bound
8+
namespace small_vectors::inline v3_3::algo::lower_bound
99
{
1010

1111
// Idea from Andrei Alexandrescu on improved lower bound
@@ -18,8 +18,9 @@ struct bound_leaning_lower_bound_fn
1818
typename compare_type>
1919
requires std::
2020
invocable<compare_type, typename std::iterator_traits<iterator>::value_type const &, value_type const &>
21-
constexpr auto operator()(iterator first, sentinel last, value_type const & v, compare_type less) const
22-
noexcept(noexcept(less(*first, v))) -> iterator
21+
constexpr auto operator()(iterator first, sentinel last, value_type const & v, compare_type less) const noexcept(
22+
noexcept(less(*first, v))
23+
) -> iterator
2324
{
2425
if(first == last)
2526
return iterator(last); // Convert sentinel to iterator if they're different types
@@ -71,4 +72,4 @@ struct bound_leaning_lower_bound_fn
7172
};
7273

7374
inline constexpr bound_leaning_lower_bound_fn bound_leaning{};
74-
} // namespace small_vectors::inline v3_2::algo::lower_bound
75+
} // namespace small_vectors::inline v3_3::algo::lower_bound

‎include/small_vectors/algo/bwt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <boost/container/flat_map.hpp>
99

1010
/// \brief Burrows–Wheeler transform
11-
namespace small_vectors::inline v3_2::algo::bwt
11+
namespace small_vectors::inline v3_3::algo::bwt
1212
{
1313
namespace concepts
1414
{
@@ -175,4 +175,4 @@ struct decode_t
175175

176176
template<char end_char>
177177
inline constexpr decode_t<end_char> decode;
178-
} // namespace small_vectors::inline v3_2::algo::bwt
178+
} // namespace small_vectors::inline v3_3::algo::bwt

0 commit comments

Comments
 (0)
Please sign in to comment.