Definition at line 358 of file yaml_decoders.cc.
 
 | 
| static bool  | decode (const Node &node, method_type &rhs) | 
|   | 
◆ decode()
  
  
      
        
          | static bool YAML::convert< method_type >::decode  | 
          ( | 
          const Node &  | 
          node,  | 
         
        
           | 
           | 
          method_type &  | 
          rhs  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Definition at line 359 of file yaml_decoders.cc.
  360    {
  361        const auto &val = node.as<std::string>();
  362        if (val == 
to_string(method_type::constructor))
 
  363            rhs = method_type::constructor;
  364        else if (val == 
to_string(method_type::destructor))
 
  365            rhs = method_type::destructor;
  366        else if (val == 
to_string(method_type::assignment))
 
  367            rhs = method_type::assignment;
  368        else if (val == 
to_string(method_type::operator_))
 
  369            rhs = method_type::operator_;
  370        else if (val == 
to_string(method_type::defaulted))
 
  371            rhs = method_type::defaulted;
  372        else if (val == 
to_string(method_type::deleted))
 
  373            rhs = method_type::deleted;
  374        else if (val == 
to_string(method_type::static_))
 
  375            rhs = method_type::static_;
  376        else
  377            return false;
  378 
  379        return true;
  380    }
 
 
 
The documentation for this struct was generated from the following file: