ppap4lmp  0.7.2
pyargs_to_vec.h
Go to the documentation of this file.
1 
8 #ifndef PYARGS_TO_VEC_H
9 #define PYARGS_TO_VEC_H
10 
11 #include <alias/std.h>
12 #include <alias/pybind.h>
13 
15 namespace utils
16 {
30  template<typename T>
31  void pyargs_to_vec(
32  const py::args &args,
33  Vec<T> &vec);
34 }
35 
36 #endif
void pyargs_to_vec(const py::args &args, Vec< T > &vec)
Convert a py::args (a variable number arguments) object to a Vec object.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
This file includes a part of C++ Standard Template Library and defines aliases for them...
Namespace for utility functions.
Definition: join.h:14
This file includes pybind11 and defines an alias for the namespace pybind11.