|
| template<typename Cont > |
| std::enable_if< is_stl_container_like< Cont >::value, void >::type | insertRange (Cont &v, unsigned start, unsigned stop) |
| |
| template<typename Cont , typename U > |
| std::enable_if< is_stl_container_like< Cont >::value, void >::type | concatenate (Cont &dest, const U &src) |
| |
| template<typename Cont , typename U > |
| std::enable_if< is_stl_container_like< Cont >::value, bool >::type | contains (const Cont &v, const U &val) |
| |
| template<typename C , typename = std::enable_if<is_stl_container_like<C>::value>> |
| void | shift_right (C &c) |
| | Perform a circular rotation on a given container object. More...
|
| |
| template<typename C , typename = std::enable_if<is_stl_container_like<C>::value>> |
| void | shift_left (C &c) |
| | Perform a circular rotation on a given container object. More...
|
| |
| template<typename To , typename From > |
| To | clipNegative (const From &x) |
| |
| template<typename T > |
| circit< T > | getCircularIterator (T start, T end) |
| |
| template<typename Map > |
| second_t< typename Map::value_type > | second (const Map &) |
| |
| template<class Pair > |
| std::enable_if< is_pair< Pair >::value, Pair >::type::second_type | get_second (Pair p) |
| |
| template<typename Map , typename = std::enable_if<is_mapping<Map>::value>> |
| Map::iterator | min_map_element (Map &m) |
| | Takes map-like container and returns an iterator to the pair with the minimum associated key value. More...
|
| |
| template<typename Map , typename = std::enable_if<is_mapping<Map>::value>> |
| Map::iterator | max_map_element (Map &m) |
| | Takes map-like container and returns an iterator to the pair with the maximum associated key value. More...
|
| |
| template<typename E > |
| constexpr auto | to_integral (E e) -> decltype(to_integral_helper< E >::inner(e)) |
| |
| template<typename T > |
| constexpr T | degree_to_radian (const T °ree) noexcept |
| |
| template<typename T > |
| constexpr T | radian_to_degree (const T &radian) noexcept |
| |
| template<typename T > |
| constexpr T | sqr (const T &x) noexcept |
| |
| template<typename T > |
| constexpr T | abs_diff (T a, T b) noexcept |
| |
| int | calcNchooseK (int n, int k) |
| |
| template<typename T , typename Base > |
| void | AddToSharedPtrList (const std::shared_ptr< Base > base, std::list< std::shared_ptr< T > > &list) |
| |
| template<typename From , typename To > |
| std::unique_ptr< To > | static_cast_uptr (std::unique_ptr< From > &&ptr) |
| |
| template<class T , class... Args> |
| _Unique_if< T >::_Single_object | make_unique (Args &&... args) |
| |
| template<class T > |
| _Unique_if< T >::_Unknown_bound | make_unique (size_t n) |
| |
| template<class T , class... Args> |
| _Unique_if< T >::_Known_bound | make_unique (Args &&...)=delete |
| |
| template<class T , class U , class Better > |
| bool | copy_if_better (T &dest, const U &source, Better better) |
| |
| template<class T , class U > |
| bool | copy_if_greater (T &dest, const U &source) |
| |
| template<class TContainer > |
| bool | begins_with (const TContainer &input, const TContainer &match) |
| |
| template<typename T > |
| std::string | getTypeAsString () |
| |
| template<typename T > |
| std::remove_pointer< T >::type | dereference (T *t) |
| |
| template<typename T > |
| std::enable_if<!has_element_type< T >::value, T & >::type | dereference (T &t) |
| |
| template<typename T > |
| std::enable_if< has_element_type< T >::value, typename T::element_type & >::type | dereference (const T &t) |
| |
| template<class it_t , class T = decltype(*std::declval<it_t>())> |
| constexpr bool | is_const_iterator () |
| |
| bool | string_ends_with (std::string const &value, std::string const &ending) |
| | Check if a string ends with a substr. For example useful for file extensions. More...
|
| |
| bool | string_starts_with (std::string const &value, std::string const &beginning) |
| |
| void | replace (std::string &subject, const std::string &search, const std::string &replace) |
| | replace a substring More...
|
| |
| std::string | replace_str (const std::string &input, const std::string &search, const std::string &replace) |
| |
| std::string | string_sanitize (std::string s) |
| | string_sanitize removes nasty whitespace from string More...
|
| |
| bool | contains (const std::string &str, const std::string &needle) |
| |
| void | removesubstr (std::string &str, const std::string &substr) |
| | Remove all occurences of substr from str. More...
|
| |
| void | remove_char (std::string &str, const char ch) |
| | Remove all occurences of charachter ch from str. More...
|
| |
| void | remove_chars (std::string &str, const std::initializer_list< const char > chars) |
| | Remove all occurences of certain charachters from str. More...
|
| |
| std::string | basename (const std::string &filenamepath) |
| |
| std::vector< std::string > | tokenize_string (const std::string &str, const std::string &delim) |
| |
| std::string | concatenate_string (const std::vector< std::string > &tokens, const std::string &delim) |
| |
| std::string | to_lower (const std::string &str) |
| |
| std::string | to_upper (const std::string &str) |
| |
| std::string | to_iso8601 (const time_t &time) |
| |
| std::tm | to_tm (const std::string &str, const std::string &fmt) |
| |
| time_t | to_time_t (const std::tm &tm_) |
| |
| time_t | to_time_t (const std::string &str, bool is_end) |
| |
| bool | time_before (const time_t &moment, const std::string &before) |
| |
| bool | time_after (const time_t &moment, const std::string &after) |
| |
| bool | time_between (const time_t &moment, const std::string &begin, const std::string &end) |
| |
| int | get_day_of_week (int day, int month, int year) |
| |
| bool | guess_dst (std::tm &time) |
| |
| template<typename T , typename... Ts, std::size_t... Idx> |
| constexpr std::tuple< Ts... > | strip_first_from_tuple_impl (const std::tuple< T, Ts... > &t, indices< Idx... >) noexcept |
| |
| template<typename T , typename... Ts> |
| constexpr std::tuple< Ts... > | strip_first_from_tuple (const std::tuple< T, Ts... > &t) noexcept |
| |
| template<typename T > |
| std::vector< size_t > | get_sorted_indices (std::vector< T > vec) |
| | Takes a vector and compares its contents to obtain sorted indices. More...
|
| |
| template<typename T > |
| std::vector< size_t > | get_sorted_indices_desc (std::vector< T > vec) |
| | Takes a vector and compares its contents to obtain sorted indices in descending order. More...
|
| |