Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strings3.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/sort/strings3.cpp
3  *
4  * Part of tlx - http://panthema.net/tlx
5  *
6  * Copyright (C) 2018 Timo Bingmann <[email protected]>
7  *
8  * All rights reserved. Published under the Boost Software License, Version 1.0
9  ******************************************************************************/
10 
11 #include <tlx/sort/strings.hpp>
15 
16 namespace tlx {
17 
18 namespace ss = tlx::sort_strings_detail;
19 
20 void sort_strings(std::string* strings, size_t size, size_t memory) {
22  ss::StdStringSet(strings, strings + size), /* depth */ 0, memory);
23 }
24 
25 void sort_strings(std::vector<std::string>& strings, size_t memory) {
26  return sort_strings(strings.data(), strings.size(), memory);
27 }
28 
29 } // namespace tlx
30 
31 /******************************************************************************/
Class implementing StringSet concept for arrays of std::string objects.
Definition: string_set.hpp:287
void sort_strings(char **strings, size_t size, size_t memory=0)
Sort a set of strings represented by C-style char* in place.
Definition: strings1.cpp:20
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220
static void radixsort_CE3(const StringSet &ss, size_t depth, size_t memory)
Definition: radix_sort.hpp:331