Classes | Typedefs | Functions
stl.h File Reference
#include "pybind11.h"
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <iostream>
#include <list>
#include <deque>
#include <valarray>
Include dependency graph for stl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  array_caster< ArrayType, Value, Resizable, Size >
 
struct  list_caster< Type, Value >
 
struct  map_caster< Type, Key, Value >
 
struct  optional_caster< T >
 
struct  set_caster< Type, Key >
 
struct  type_caster< std::array< Type, Size > >
 
struct  type_caster< std::deque< Type, Alloc > >
 
struct  type_caster< std::list< Type, Alloc > >
 
struct  type_caster< std::map< Key, Value, Compare, Alloc > >
 
struct  type_caster< std::set< Key, Compare, Alloc > >
 
struct  type_caster< std::unordered_map< Key, Value, Hash, Equal, Alloc > >
 
struct  type_caster< std::unordered_set< Key, Hash, Equal, Alloc > >
 
struct  type_caster< std::valarray< Type > >
 
struct  type_caster< std::vector< Type, Alloc > >
 
struct  variant_caster< Variant >
 Generic variant caster. More...
 
struct  variant_caster< V< Ts... > >
 
struct  variant_caster_visitor
 Visit a variant and cast any found type to Python. More...
 
struct  visit_helper< Variant >
 

Typedefs

template<typename T , typename U >
using forwarded_type = conditional_t< std::is_lvalue_reference< T >::value, remove_reference_t< U > &, remove_reference_t< U > && >
 

Functions

template<typename T , typename U >
forwarded_type< T, Uforward_like (U &&u)
 
std::ostream & operator<< (std::ostream &os, const handle &obj)
 

Typedef Documentation

template<typename T , typename U >
using forwarded_type = conditional_t< std::is_lvalue_reference<T>::value, remove_reference_t<U> &, remove_reference_t<U> &&>

Extracts an const lvalue reference or rvalue reference for U based on the type of T (e.g. for forwarding a container element). Typically used indirect via forwarded_type(), below.

Definition at line 58 of file stl.h.

Function Documentation

template<typename T , typename U >
forwarded_type<T, U> forward_like ( U &&  u)

Forwards a value U as rvalue or lvalue according to whether T is rvalue or lvalue; typically used for forwarding a container's elements.

Definition at line 63 of file stl.h.

std::ostream& operator<< ( std::ostream &  os,
const handle obj 
)
inline

Definition at line 379 of file stl.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:40