mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added Node::clear() function
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
inline Node::Node(): m_pNode(0)
|
||||
inline Node::Node(): m_pNode(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -168,6 +168,11 @@ namespace YAML
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline void Node::clear()
|
||||
{
|
||||
m_pNode = NULL;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void Node::Assign(const T& rhs)
|
||||
{
|
||||
|
@@ -56,6 +56,7 @@ namespace YAML
|
||||
bool is(const Node& rhs) const;
|
||||
template<typename T> Node& operator=(const T& rhs);
|
||||
Node& operator=(const Node& rhs);
|
||||
void clear();
|
||||
|
||||
// size/iterator
|
||||
std::size_t size() const;
|
||||
|
Reference in New Issue
Block a user