Function ObjectStorage

Summary

#include <include/internal/benchmark/catch_constructor.hpp>

(1) ObjectStorage()

(2) ObjectStorage(const ObjectStorage &other)

(3) ObjectStorage(ObjectStorage &&other)

Function overload

Synopsis

#include <include/internal/benchmark/catch_constructor.hpp>

ObjectStorage(const ObjectStorage &other)

Description

No description yet.

Source

Lines 26-29 in include/internal/benchmark/catch_constructor.hpp.

ObjectStorage(const ObjectStorage& other)
{
    new(&data) T(other.stored_object());
}

Synopsis

#include <include/internal/benchmark/catch_constructor.hpp>

ObjectStorage(ObjectStorage &&other)

Description

No description yet.

Source

Lines 31-34 in include/internal/benchmark/catch_constructor.hpp.

ObjectStorage(ObjectStorage&& other)
{
    new(&data) T(std::move(other.stored_object()));
}





Add Discussion as Guest

Log in