|
Algorithms_in_C++
1.0.0
Set of algorithms implemented in C++.
|
#include <algorithm>#include <ostream>#include <string>#include <utility>Go to the source code of this file.
Classes | |
| struct | std::is_integral< uint128_t > |
| struct | std::is_arithmetic< uint128_t > |
| struct | std::is_unsigned< uint128_t > |
| class | uint128_t |
| class for 128-bit unsigned integer More... | |
Macros | |
| #define | CIPHERS_UINT128_T_HPP_ |
for std::pair library More... | |
Functions | |
| std::string | add (const std::string &first, const std::string &second) |
| Adding two string. More... | |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator+ (const T &p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator- (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator* (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator/ (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator% (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator& (const T &p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator| (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| uint128_t | operator^ (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator&& (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator|| (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator== (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator!= (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator< (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator<= (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator> (const T p, const uint128_t &q) |
| template<typename T , typename = typename std::enable_if< std::is_integral<T>::value, T>::type> | |
| bool | operator>= (const T p, const uint128_t &q) |
Implementation of 128-bit unsigned integers.
| #define CIPHERS_UINT128_T_HPP_ |
for std::pair library
for std::reverse and other operations for std::cout overload for std::string
| std::string add | ( | const std::string & | first, |
| const std::string & | second | ||
| ) |
Adding two string.
Adds two long integer, only used for printing numbers
| first | First integer string |
| second | Second integer string |