#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include "constructor_stats.h"
#include "pybind11_tests.h"
#include <algorithm>
#include <utility>
#include <vector>
Go to the source code of this file.
Classes | |
class | NonCopyableInt |
class | NonRefIterator< T > |
class | NonZeroIterator< T > |
class | NonZeroSentinel |
Typedefs | |
using | NonCopyableIntPair = std::pair< NonCopyableInt, NonCopyableInt > |
Functions | |
template<typename A , typename B > | |
bool | operator== (const NonZeroIterator< std::pair< A, B >> &it, const NonZeroSentinel &) |
PYBIND11_MAKE_OPAQUE (std::vector< NonCopyableInt >) | |
PYBIND11_MAKE_OPAQUE (std::vector< NonCopyableIntPair >) | |
template<typename PythonType > | |
py::list | test_random_access_iterator (PythonType x) |
TEST_SUBMODULE (sequences_and_iterators, m) | |
using NonCopyableIntPair = std::pair<NonCopyableInt, NonCopyableInt> |
Definition at line 87 of file test_sequences_and_iterators.cpp.
bool operator== | ( | const NonZeroIterator< std::pair< A, B >> & | it, |
const NonZeroSentinel & | |||
) |
Definition at line 48 of file test_sequences_and_iterators.cpp.
PYBIND11_MAKE_OPAQUE | ( | std::vector< NonCopyableInt > | ) |
PYBIND11_MAKE_OPAQUE | ( | std::vector< NonCopyableIntPair > | ) |
py::list test_random_access_iterator | ( | PythonType | x | ) |
Definition at line 93 of file test_sequences_and_iterators.cpp.
TEST_SUBMODULE | ( | sequences_and_iterators | , |
m | |||
) |
Bare bones interface
Optional sequence protocol operations
Slicing protocol (optional)
Comparisons
Definition at line 136 of file test_sequences_and_iterators.cpp.