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 24 of file cast.hh.
 
◆ down_caster()
  
  
      
        
          | vcsn::detail::down_caster::down_caster  | 
          ( | 
          const char *  | 
          f,  | 
         
        
           | 
           | 
          int  | 
          l  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ cast() [1/2]
template<typename T , typename U > 
  
  
      
        
          | T vcsn::detail::down_caster::cast  | 
          ( | 
          U  | 
          t | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ cast() [2/2]
template<typename T , typename U > 
  
  
      
        
          | std::shared_ptr<T> vcsn::detail::down_caster::cast  | 
          ( | 
          std::shared_ptr< U >  | 
          t | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ error()
template<typename T , typename U > 
  
  
      
        
          | void vcsn::detail::down_caster::error  | 
          ( | 
          const char *  | 
          msg | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ file
      
        
          | const char* vcsn::detail::down_caster::file | 
        
      
 
 
◆ line
      
        
          | int vcsn::detail::down_caster::line | 
        
      
 
 
The documentation for this struct was generated from the following file: