Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 14 static_assert(!IS_TRIVIALLY_CONSTRUCTIBLE<nontrivial_t>::value,
15 "expected nontrivial_t to not be trivially constructible");
18 static_assert(IS_TRIVIALLY_CONSTRUCTIBLE<trivial_t>::value,
19 "expected trivial_t to be trivially constructible");
25 for (
auto x = 0; x < 1000; ++x) {
39 for (
auto x = 0; x < 1000; ++x) {
56 for (
auto x = 0; x < 1000; ++x) {
65 #define PREVECTOR_TEST(name, nontrivops, trivops) \ 66 static void Prevector ## name ## Nontrivial(benchmark::State& state) { \ 67 PrevectorResize<nontrivial_t>(state); \ 69 BENCHMARK(Prevector ## name ## Nontrivial); \ 70 static void Prevector ## name ## Trivial(benchmark::State& state) { \ 71 PrevectorResize<trivial_t>(state); \ 73 BENCHMARK(Prevector ## name ## Trivial); 87 std::vector<unsigned char> v;
89 for (
int i = 0; i < 1000; ++i) {
101 std::vector<unsigned char> v;
103 for (
int i = 0; i < 1000; ++i) {
void resize(size_type new_size)
static void PrevectorDestructor(benchmark::State &state)
void PrevectorResize(benchmark::State &state)
static void PrevectorAssign(benchmark::State &state)
#define PREVECTOR_TEST(name, nontrivops, trivops)
static void PrevectorClear(benchmark::State &state)
static void PrevectorAssignTo(benchmark::State &state)
Implements a drop-in replacement for std::vector<T> which stores up to N elements directly (without h...
prevector< 28, unsigned char > prevec
static void assign_to(const_iterator b, const_iterator e, V &v)