Loading...
Searching...
No Matches
Namespaces | Functions
py_arg.h File Reference

Create an object with a bbm constructor (with bbm::args) from py::args and py::kwargs arguments. More...

#include <utility>
#include <stdexcept>
#include "concepts/constructor.h"
#include "python/py_cast.h"

Go to the source code of this file.

Namespaces

namespace  bbm
 
namespace  bbm::python
 

Functions

template<typename ARGS >
requires is_args_v<ARGS>
auto py_args_to_bbm_args (py::args &args, py::kwargs &kwargs)
 Create a bbm::arg from py:args and py::kwargs.
 
template<typename OBJ_TYPE >
requires concepts::constructor<OBJ_TYPE>
OBJ_TYPE create_object (py::args &args, py::kwargs &kwargs)
 Construct an object with a valid 'constructor_args_t' based on python args and kwargs.
 

Detailed Description

Create an object with a bbm constructor (with bbm::args) from py::args and py::kwargs arguments.