Classes | Typedefs | Functions
stl.h File Reference
#include "pybind11.h"
#include "detail/common.h"
#include <deque>
#include <list>
#include <map>
#include <ostream>
#include <set>
#include <unordered_map>
#include <unordered_set>
#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< Type, Value >
 
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 > && >
 
template<typename C >
using has_reserve_method = std::is_same< decltype(std::declval< C >().reserve(0)), void >
 

Functions

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

Typedef Documentation

◆ forwarded_type

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 43 of file stl.h.

◆ has_reserve_method

template<typename C >
using has_reserve_method = std::is_same<decltype(std::declval<C>().reserve(0)), void>

Definition at line 55 of file stl.h.

Function Documentation

◆ forward_like()

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

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 48 of file stl.h.

◆ operator<<()

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

Definition at line 439 of file stl.h.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:52