PIVX Core  5.6.99
P2P Digital Currency
Classes | Macros | Typedefs | Functions
prevector.cpp File Reference
#include "bench/bench.h"
#include "compat.h"
#include "prevector.h"
#include "serialize.h"
#include "streams.h"
#include <type_traits>
Include dependency graph for prevector.cpp:

Go to the source code of this file.

Classes

struct  nontrivial_t
 

Macros

#define IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_default_constructible
 
#define PREVECTOR_TEST(name, nontrivops, trivops)
 

Typedefs

typedef unsigned char trivial_t
 

Functions

template<typename T >
void PrevectorResize (benchmark::State &state)
 

Macro Definition Documentation

◆ IS_TRIVIALLY_CONSTRUCTIBLE

#define IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_default_constructible

Definition at line 19 of file prevector.cpp.

◆ PREVECTOR_TEST

#define PREVECTOR_TEST (   name,
  nontrivops,
  trivops 
)
Value:
static void Prevector ## name ## Nontrivial(benchmark::State& state) { \
PrevectorResize<nontrivial_t>(state); \
} \
BENCHMARK(Prevector ## name ## Nontrivial, nontrivops); \
static void Prevector ## name ## Trivial(benchmark::State& state) { \
PrevectorResize<trivial_t>(state); \
} \
BENCHMARK(Prevector ## name ## Trivial, trivops);
const char * name
Definition: rest.cpp:37

Definition at line 78 of file prevector.cpp.

Typedef Documentation

◆ trivial_t

typedef unsigned char trivial_t

Definition at line 30 of file prevector.cpp.

Function Documentation

◆ PrevectorResize()

template<typename T >
void PrevectorResize ( benchmark::State state)

Definition at line 64 of file prevector.cpp.

Here is the call graph for this function: