algo: remove doubly qualified root namespace
This commit is contained in:
parent
c814e0001e
commit
483c43c732
@ -15,4 +15,4 @@
|
||||
//
|
||||
// this particular instantiation isn't necessarily required by any user, it's
|
||||
// just convenient.
|
||||
template void cruft::cruft::sort::soa (int*, int*, bool (*)(int,int), double*);
|
||||
template void cruft::sort::soa (int*, int*, bool (*)(int,int), double*);
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace cruft::cruft::sort {
|
||||
namespace cruft::sort {
|
||||
namespace detail {
|
||||
template <typename IndexA, typename IndexB, typename RandomIt>
|
||||
void
|
||||
|
@ -37,7 +37,7 @@ main (int, char**)
|
||||
std::array<int,3> values { 3, 4, 5 };
|
||||
const std::array<int,3> expected = { 4, 5, 3 };
|
||||
|
||||
cruft::cruft::sort::reorder (
|
||||
cruft::sort::reorder (
|
||||
std::begin (indices), std::end (indices),
|
||||
std::begin (values)
|
||||
);
|
||||
@ -59,7 +59,7 @@ main (int, char**)
|
||||
{ 9, 10, 11 },
|
||||
};
|
||||
|
||||
cruft::cruft::sort::reorder (
|
||||
cruft::sort::reorder (
|
||||
std::begin (indices), std::end (indices),
|
||||
std::begin (values[0]),
|
||||
std::begin (values[1]),
|
||||
@ -84,7 +84,7 @@ main (int, char**)
|
||||
};
|
||||
|
||||
for (auto &t: TESTS) {
|
||||
cruft::cruft::sort::soa (
|
||||
cruft::sort::soa (
|
||||
std::begin (t.values), std::end (t.values),
|
||||
[] (int a, int b) { return a < b; }
|
||||
);
|
||||
@ -102,7 +102,7 @@ main (int, char**)
|
||||
const std::array<char,3> expected_c { 'b', 'c', 'a' };
|
||||
const std::array<float,3> expected_f { 1.f, 2.f, 0.f };
|
||||
|
||||
cruft::cruft::sort::soa (
|
||||
cruft::sort::soa (
|
||||
std::begin (value_i), std::end (value_i),
|
||||
[] (const auto &i, const auto &j) { return i < j; },
|
||||
std::begin (value_c),
|
||||
|
Loading…
Reference in New Issue
Block a user