Functions | |
def | test_array (doc) |
def | test_array_cast_sequence () |
def | test_boost_optional () |
def | test_deque () |
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) |
def test_stl.test_array | ( | doc | ) |
std::array <-> list
Definition at line 37 of file test_stl.py.
def test_stl.test_array_cast_sequence | ( | ) |
Definition at line 367 of file test_stl.py.
def test_stl.test_boost_optional | ( | ) |
Definition at line 182 of file test_stl.py.
def test_stl.test_deque | ( | ) |
std::deque <-> list
Definition at line 28 of file test_stl.py.
def test_stl.test_exp_optional | ( | ) |
Definition at line 152 of file test_stl.py.
def test_stl.test_fs_path | ( | ) |
Definition at line 241 of file test_stl.py.
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 350 of file test_stl.py.
def test_stl.test_issue_1561 | ( | ) |
check fix for issue #1561
Definition at line 371 of file test_stl.py.
def test_stl.test_map | ( | doc | ) |
std::map <-> dict
Definition at line 62 of file test_stl.py.
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 329 of file test_stl.py.
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 107 of file test_stl.py.
def test_stl.test_optional | ( | ) |
Definition at line 118 of file test_stl.py.
def test_stl.test_recursive_casting | ( | ) |
Tests that stl casters preserve lvalue/rvalue context for container values
Definition at line 87 of file test_stl.py.
def test_stl.test_reference_sensitive_optional | ( | ) |
Definition at line 211 of file test_stl.py.
def test_stl.test_return_vector_bool_raw_ptr | ( | ) |
Definition at line 379 of file test_stl.py.
def test_stl.test_set | ( | doc | ) |
std::set <-> set
Definition at line 75 of file test_stl.py.
def test_stl.test_stl_ownership | ( | ) |
Definition at line 358 of file test_stl.py.
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 300 of file test_stl.py.
def test_stl.test_valarray | ( | doc | ) |
std::valarray <-> list
Definition at line 51 of file test_stl.py.
def test_stl.test_variant | ( | doc | ) |
Definition at line 260 of file test_stl.py.
def test_stl.test_variant_monostate | ( | doc | ) |
Definition at line 279 of file test_stl.py.
def test_stl.test_vec_of_reference_wrapper | ( | ) |
#171: Can't return reference wrappers (or STL structures containing them)
Definition at line 292 of file test_stl.py.
def test_stl.test_vector | ( | doc | ) |
std::vector <-> list
Definition at line 9 of file test_stl.py.