A functor that captures the current location (to report errors), and provides "cast".
More...
#include <cast.hh>
|
| | down_caster (const char *f, int l) |
| |
| template<typename T , typename U > |
| void | error (const char *msg) |
| |
| template<typename T , typename U > |
| T | cast (U t) |
| |
| template<typename T , typename U > |
| std::shared_ptr< T > | cast (std::shared_ptr< U > t) |
| | Special case for shared_ptr. More...
|
| |
A functor that captures the current location (to report errors), and provides "cast".
Definition at line 23 of file cast.hh.
| vcsn::detail::down_caster::down_caster |
( |
const char * |
f, |
|
|
int |
l |
|
) |
| |
|
inline |
template<typename T , typename U >
| T vcsn::detail::down_caster::cast |
( |
U |
t | ) |
|
|
inline |
template<typename T , typename U >
| std::shared_ptr<T> vcsn::detail::down_caster::cast |
( |
std::shared_ptr< U > |
t | ) |
|
|
inline |
Special case for shared_ptr.
Definition at line 59 of file cast.hh.
template<typename T , typename U >
| void vcsn::detail::down_caster::error |
( |
const char * |
msg | ) |
|
|
inline |
| const char* vcsn::detail::down_caster::file |
| int vcsn::detail::down_caster::line |
The documentation for this struct was generated from the following file: