legate::experimental::stl::initialize_library#
-
class initialize_library#
A class that initializes the Legate runtime and creates the
legate.stllibrary instance.The
initialize_libraryclass is responsible for creating a library instance. The initialization fails if the runtime has not started. If the initialization is successful, it creates a library with the name"legate.stl".The library instance is automatically destroyed when the
initialize_libraryobject goes out of scope.It is harmless to create multiple
initialize_libraryobjects in the same program.See also
Public Functions
-
inline initialize_library()#
Constructs an
initialize_libraryobject.This constructor creates a library instance for Legate STL. The initialization fails if the runtime has not started. If the initialization is successful, it creates a library with the name
"legate.stl".- Throws:
std::runtime_error – If the runtime has not started
-
inline initialize_library()#