Functions
test_stl Namespace Reference

Functions

def test_array (doc)
 
def test_array_cast_sequence ()
 
def test_boost_optional ()
 
def test_deque (doc)
 
def test_exp_optional ()
 
def test_fs_path ()
 
def test_function_with_string_and_vector_string_arg ()
 
def test_issue_1561 ()
 
def test_map (doc)
 
def test_missing_header_message ()
 
def test_move_out_container ()
 
def test_optional ()
 
def test_recursive_casting ()
 
def test_reference_sensitive_optional ()
 
def test_return_vector_bool_raw_ptr ()
 
def test_set (doc)
 
def test_stl_ownership ()
 
def test_stl_pass_by_pointer (msg)
 
def test_valarray (doc)
 
def test_variant (doc)
 
def test_variant_monostate (doc)
 
def test_vec_of_reference_wrapper ()
 
def test_vector (doc)
 

Function Documentation

◆ test_array()

def test_stl.test_array (   doc)
std::array <-> list

Definition at line 35 of file test_stl.py.

◆ test_array_cast_sequence()

def test_stl.test_array_cast_sequence ( )

Definition at line 361 of file test_stl.py.

◆ test_boost_optional()

def test_stl.test_boost_optional ( )

Definition at line 176 of file test_stl.py.

◆ test_deque()

def test_stl.test_deque (   doc)
std::deque <-> list

Definition at line 26 of file test_stl.py.

◆ test_exp_optional()

def test_stl.test_exp_optional ( )

Definition at line 146 of file test_stl.py.

◆ test_fs_path()

def test_stl.test_fs_path ( )

Definition at line 235 of file test_stl.py.

◆ test_function_with_string_and_vector_string_arg()

def test_stl.test_function_with_string_and_vector_string_arg ( )
Check if a string is NOT implicitly converted to a list, which was the
behavior before fix of issue #1258

Definition at line 344 of file test_stl.py.

◆ test_issue_1561()

def test_stl.test_issue_1561 ( )
check fix for issue #1561

Definition at line 365 of file test_stl.py.

◆ test_map()

def test_stl.test_map (   doc)
std::map <-> dict

Definition at line 57 of file test_stl.py.

◆ test_missing_header_message()

def test_stl.test_missing_header_message ( )
Trying convert `list` to a `std::vector`, or vice versa, without including
<pybind11/stl.h> should result in a helpful suggestion in the error message

Definition at line 323 of file test_stl.py.

◆ test_move_out_container()

def test_stl.test_move_out_container ( )
Properties use the `reference_internal` policy by default. If the underlying function
returns an rvalue, the policy is automatically changed to `move` to avoid referencing
a temporary. In case the return value is a container of user-defined types, the policy
also needs to be applied to the elements, not just the container.

Definition at line 101 of file test_stl.py.

◆ test_optional()

def test_stl.test_optional ( )

Definition at line 112 of file test_stl.py.

◆ test_recursive_casting()

def test_stl.test_recursive_casting ( )
Tests that stl casters preserve lvalue/rvalue context for container values

Definition at line 82 of file test_stl.py.

◆ test_reference_sensitive_optional()

def test_stl.test_reference_sensitive_optional ( )

Definition at line 205 of file test_stl.py.

◆ test_return_vector_bool_raw_ptr()

def test_stl.test_return_vector_bool_raw_ptr ( )

Definition at line 373 of file test_stl.py.

◆ test_set()

def test_stl.test_set (   doc)
std::set <-> set

Definition at line 70 of file test_stl.py.

◆ test_stl_ownership()

def test_stl.test_stl_ownership ( )

Definition at line 352 of file test_stl.py.

◆ test_stl_pass_by_pointer()

def test_stl.test_stl_pass_by_pointer (   msg)
Passing nullptr or None to an STL container pointer is not expected to work

Definition at line 294 of file test_stl.py.

◆ test_valarray()

def test_stl.test_valarray (   doc)
std::valarray <-> list

Definition at line 46 of file test_stl.py.

◆ test_variant()

def test_stl.test_variant (   doc)

Definition at line 254 of file test_stl.py.

◆ test_variant_monostate()

def test_stl.test_variant_monostate (   doc)

Definition at line 273 of file test_stl.py.

◆ test_vec_of_reference_wrapper()

def test_stl.test_vec_of_reference_wrapper ( )
#171: Can't return reference wrappers (or STL structures containing them)

Definition at line 286 of file test_stl.py.

◆ test_vector()

def test_stl.test_vector (   doc)
std::vector <-> list

Definition at line 7 of file test_stl.py.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:31