Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
StealthTypes.hpp
Go to the documentation of this file.
1
6/*
7 * Author: Radovan Cerveny
8 */
9
10#pragma once
11
12#include <string>
13#include <vector>
14#include <map>
15#include "StealthAllocator.hpp"
16
17namespace measurements {
18
19using stealth_string = std::basic_string < char, std::char_traits < char >, stealth_allocator < char > >;
20
21std::string to_string ( const stealth_string & );
22std::string to_string ( stealth_string & );
23
24stealth_string stealthStringFromString ( const std::string & );
25
26template < typename T >
27using stealth_vector = std::vector < T, stealth_allocator < T > >;
28
29template < class Key, class T, class Compare = std::less < Key > >
30using stealth_map = std::map < Key, T, Compare, stealth_allocator < std::pair < const Key, T > > >;
31}
32
Definition: StealthAllocator.hpp:19
Definition: StealthAllocator.hpp:16
std::map< Key, T, Compare, stealth_allocator< std::pair< const Key, T > > > stealth_map
Definition: StealthTypes.hpp:30
stealth_string stealthStringFromString(const std::string &str)
Definition: StealthTypes.cpp:21
std::basic_string< char, std::char_traits< char >, stealth_allocator< char > > stealth_string
Definition: StealthTypes.hpp:19
std::vector< T, stealth_allocator< T > > stealth_vector
Definition: StealthTypes.hpp:27
std::string to_string(const stealth_string &ss)
Definition: StealthTypes.cpp:13