MCPcopy Create free account
hub / github.com/pybind/pybind11 / NoBraceInitialization

Method NoBraceInitialization

tests/test_class.cpp:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// test_brace_initialization
29struct NoBraceInitialization {
30 explicit NoBraceInitialization(std::vector<int> v) : vec{std::move(v)} {}
31 template <typename T>
32 NoBraceInitialization(std::initializer_list<T> l) : vec(l) {}
33

Callers 1

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected