virthttp  0.0
libvirt http interface
Classes | Functions | Variables
utils.hpp File Reference
#include <algorithm>
#include <tuple>
#include <type_traits>
#include "virt_wrap/utility.hpp"

Go to the source code of this file.

Classes

struct  TypeVal< T >
 
struct  TypePair< T, U >
 
struct  TypeIdentity< T >
 

Functions

constexpr auto pow10 (std::size_t n)
 
constexpr unsigned strntou (const char *str, std::size_t len)
 
template<typename Container , typename T >
unsigned reverse_search (const Container &c, const T &e)
 

Variables

template<class T >
TypeVal< T > t_ {}
 
template<class T , class U >
TypePair< T, U > tp {}
 
template<class T >
constexpr auto ti = TypeIdentity<T>{}
 

Function Documentation

constexpr auto pow10 ( std::size_t  n)
template<typename Container , typename T >
unsigned reverse_search ( const Container &  c,
const T &  e 
)
constexpr unsigned strntou ( const char *  str,
std::size_t  len 
)

Variable Documentation

template<class T >
TypeVal<T> t_ {}
template<class T >
constexpr auto ti = TypeIdentity<T>{}
template<class T , class U >
TypePair<T, U> tp {}