Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
utility.hpp File Reference
#include <stdint.h>
#include <algorithm>
#include <functional>
#include <new>
#include <vector>
#include <type_traits>
#include <tuple>
#include <memory>
Include dependency graph for utility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fc::remove_reference< T >
 
struct  fc::remove_reference< T & >
 
struct  fc::remove_reference< T && >
 
struct  fc::deduce< T >
 
struct  fc::deduce< T & >
 
struct  fc::deduce< const T & >
 
struct  fc::deduce< T && >
 
struct  fc::deduce< const T && >
 
struct  fc::true_type
 
struct  fc::false_type
 
struct  fc::detail::supports_allocator< T, A, Args >
 
struct  fc::is_class< T >
 
class  fc::optional_delegate< R(Args...)>
 

Namespaces

namespace  fc
 namespace sysio::chain
 
namespace  fc::detail
 

Macros

#define NO_RETURN   __attribute__((noreturn))
 
#define MAX_NUM_ARRAY_ELEMENTS   (1024*1024)
 
#define MAX_SIZE_OF_BYTE_ARRAYS   (20*1024*1024)
 
#define LLCONST(constant)
 
#define ULLCONST(constant)
 

Typedefs

typedef decltype(nullptr) fc::nullptr_t
 
using fc::yield_function_t = optional_delegate<void()>
 

Functions

template<typename T >
fc::true_type fc::detail::is_class_helper (void(T::*)())
 
template<typename T , typename A , typename... Args>
auto fc::detail::construct_maybe_with_allocator (A &&allocator, Args &&... args) -> std::enable_if_t< supports_allocator< T, A >::value &&supports_allocator< T, A >::leading_allocator, T >
 
template<typename T , typename A , typename... Args>
auto fc::detail::maybe_augment_constructor_arguments_with_allocator (A &&allocator, std::tuple< Args &&... > args, std::enable_if_t< supports_allocator< T, A >::value &&supports_allocator< T, A >::leading_allocator, int >=0)
 
template<typename T , typename A , typename... Args>
auto fc::detail::maybe_augment_constructor_arguments_with_allocator (A &&allocator, std::tuple<>, std::enable_if_t< supports_allocator< T, A >::value &&supports_allocator< T, A >::leading_allocator, int >=0)
 
template<typename T , typename A , typename... Args>
auto fc::detail::maybe_augment_constructor_arguments_with_allocator (A &&allocator, std::tuple< Args &&... > args, std::enable_if_t< supports_allocator< T, A >::value &&!supports_allocator< T, A >::leading_allocator, int >=0)
 
template<typename T , typename A , typename... Args>
auto fc::detail::maybe_augment_constructor_arguments_with_allocator (A &&allocator, std::tuple<>, std::enable_if_t< supports_allocator< T, A >::value &&!supports_allocator< T, A >::leading_allocator, int >=0)
 
template<typename T , typename A , typename... Args>
auto fc::detail::maybe_augment_constructor_arguments_with_allocator (A &&, std::tuple< Args &&... > args, std::enable_if_t<!supports_allocator< T, A >::value, int >=0)
 
template<typename T1 , typename T2 , typename A >
std::pair< T1, T2 > fc::detail::default_construct_pair_maybe_with_allocator (A &&allocator)
 
template<typename T >
const Tfc::min (const T &a, const T &b)
 
constexpr size_t fc::const_strlen (const char *str)
 
template<typename Container >
void fc::move_append (Container &dest, Container &&src)
 
template<typename Container >
void fc::copy_append (Container &dest, const Container &src)
 
template<typename Container >
void fc::deduplicate (Container &entries)
 
template<typename T >
void fc_swap (T &a, T &b)
 

Variables

template<typename T >
fc::false_type fc::detail::is_class_helper (...)
 

Macro Definition Documentation

◆ LLCONST

#define LLCONST ( constant)
Value:
static_cast<int64_t>(constant##ll)
signed __int64 int64_t
Definition stdint.h:135

Definition at line 217 of file utility.hpp.

◆ MAX_NUM_ARRAY_ELEMENTS

#define MAX_NUM_ARRAY_ELEMENTS   (1024*1024)

Definition at line 18 of file utility.hpp.

◆ MAX_SIZE_OF_BYTE_ARRAYS

#define MAX_SIZE_OF_BYTE_ARRAYS   (20*1024*1024)

Definition at line 19 of file utility.hpp.

◆ NO_RETURN

#define NO_RETURN   __attribute__((noreturn))

Definition at line 15 of file utility.hpp.

◆ ULLCONST

#define ULLCONST ( constant)
Value:
static_cast<uint64_t>(constant##ull)
unsigned __int64 uint64_t
Definition stdint.h:136

Definition at line 218 of file utility.hpp.

Function Documentation

◆ fc_swap()

template<typename T >
void fc_swap ( T & a,
T & b )

Definition at line 211 of file utility.hpp.

211 {
212 T tmp = fc::move(a);
213 a = fc::move(b);
214 b = fc::move(tmp);
215 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
#define T(meth, val, expected)
Here is the caller graph for this function: