cast: Performs C++-style casting

castR Documentation

Performs C++-style casting

Description

This function provides access to the different styles of C++ coercion or casting.

Usage

cast(from, to, how = `C++CastValues`["reinterpret"])

Arguments

from

the object to cast

to

the target type to which the object will be cast

how

the type of C++ casting, dynamic, reinterpret, static.

Author(s)

Duncan Temple Lang

References

“Writing R Extensions Manual”, R Development Core Team

The RAutoGenRunTime package for programmatically reading C/C++ code and generating bindings for the data structures, methods and routines.


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.