Lines Matching refs:std

21     NoBraceInitialization(std::vector<int> v) : vec{std::move(v)} {}
23 NoBraceInitialization(std::initializer_list<T> l) : vec(l) {}
25 std::vector<int> vec;
48 Pet(const std::string &name, const std::string &species)
50 std::string name() const { return m_name; }
51 std::string species() const { return m_species; }
53 std::string m_name;
54 std::string m_species;
59 Dog(const std::string &name) : Pet(name, "dog") {}
60 std::string bark() const { return "Woof!"; }
65 Rabbit(const std::string &name) : Pet(name, "parrot") {}
70 Hamster(const std::string &name) : Pet(name, "rodent") {}
79 .def(py::init<std::string, std::string>())
85 .def(py::init<std::string>());
89 .def(py::init<std::string>());
93 .def(py::init<std::string>());
146 py::class_<MismatchBase1, std::shared_ptr<MismatchBase1>>(mod, "MismatchBase1");
152 py::class_<MismatchDerived2, std::shared_ptr<MismatchDerived2>,
159 static std::unique_ptr<MyBase> make() {
160 return std::unique_ptr<MyBase>(new MyBase());
165 static std::unique_ptr<MyDerived> make() {
166 return std::unique_ptr<MyDerived>(new MyDerived());
213 std::uint64_t i;
219 std::uint32_t i;
225 std::uint64_t i;
234 std::uint64_t j;
237 std::uint32_t i[8];
309 std::string field2;
313 .def(py::init<int, const std::string &>())
320 .def(py::init<std::vector<int>>())
355 struct StringWrapper { std::string str; };
359 py::class_<StringWrapper>(m, "StringWrapper").def(py::init<std::string>());
360 py::implicitly_convertible<std::string, StringWrapper>();
364 std::uintptr_t ptr() const { return (uintptr_t) this; }
375 typedef py::class_<BreaksBase<1>, std::unique_ptr<BreaksBase<1>>, BreaksTramp<1>> DoesntBreak1;
376 typedef py::class_<BreaksBase<2>, BreaksTramp<2>, std::unique_ptr<BreaksBase<2>>> DoesntBreak2;
377 typedef py::class_<BreaksBase<3>, std::unique_ptr<BreaksBase<3>>> DoesntBreak3;
380 typedef py::class_<BreaksBase<6>, std::shared_ptr<BreaksBase<6>>, BreaksTramp<6>> DoesntBreak6;
381 typedef py::class_<BreaksBase<7>, BreaksTramp<7>, std::shared_ptr<BreaksBase<7>>> DoesntBreak7;
382 typedef py::class_<BreaksBase<8>, std::shared_ptr<BreaksBase<8>>> DoesntBreak8;
383 #define CHECK_BASE(N) static_assert(std::is_same<typename DoesntBreak##N::type, BreaksBase<N>>::value, \
386 #define CHECK_ALIAS(N) static_assert(DoesntBreak##N::has_alias && std::is_same<typename DoesntBreak##N::type_alias, BreaksTramp<N>>::value, \
388 #define CHECK_NOALIAS(N) static_assert(!DoesntBreak##N::has_alias && std::is_void<typename DoesntBreak##N::type_alias>::value, \
391 #define CHECK_HOLDER(N, TYPE) static_assert(std::is_same<typename DoesntBreak##N::holder_type, std::TYPE##_ptr<BreaksBase<N>>>::value, \
401 #define CHECK_BROKEN(N) static_assert(std::is_same<typename Breaks##N::type, BreaksBase<-N>>::value, \
405 //typedef py::class_<BreaksBase<-1>, std::unique_ptr<BreaksBase<-1>>, std::unique_ptr<BreaksBase<-1>>> Breaks1;
411 //typedef py::class_<BreaksBase<-3>, std::unique_ptr<BreaksBase<-3>>, BreaksTramp<-3>, BreaksTramp<-3>> Breaks3;
414 //typedef py::class_<BreaksBase<-4>, std::unique_ptr<BreaksBase<-4>>, BreaksTramp<-4>, std::shared_ptr<BreaksBase<-4>>> Breaks4;