cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Functions
test_sequences_and_iterators.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <algorithm>

Go to the source code of this file.

Classes

class  NonZeroIterator< T >
 
class  NonZeroSentinel
 

Functions

template<typename A , typename B >
bool operator== (const NonZeroIterator< std::pair< A, B >> &it, const NonZeroSentinel &)
 
template<typename PythonType >
py::list test_random_access_iterator (PythonType x)
 
 TEST_SUBMODULE (sequences_and_iterators, m)
 

Function Documentation

◆ operator==()

template<typename A , typename B >
bool operator== ( const NonZeroIterator< std::pair< A, B >> &  it,
const NonZeroSentinel  
)

Definition at line 30 of file test_sequences_and_iterators.cpp.

◆ test_random_access_iterator()

template<typename PythonType >
py::list test_random_access_iterator ( PythonType  x)

Definition at line 35 of file test_sequences_and_iterators.cpp.

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( sequences_and_iterators  ,
 
)

Bare bones interface

Optional sequence protocol operations

Slicing protocol (optional)

Comparisons

Definition at line 75 of file test_sequences_and_iterators.cpp.