Skip to content

Commit

Permalink
Vutils
Browse files Browse the repository at this point in the history
  • Loading branch information
vic4key committed Sep 30, 2023
1 parent 05a075b commit 77919df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Vutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,8 @@ class VariantT
return stream;
}

bool empty() const;

int to_int() const;
unsigned int to_uint() const;
__int64 to_int64() const;
Expand Down
6 changes: 6 additions & 0 deletions src/details/strfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,12 @@ VariantT<T>::~VariantT()
{
}

template <class T>
bool vu::VariantT<T>::empty() const
{
return m_data->str().empty();
}

template <class T>
VariantT<T>& VariantT<T>::operator=(VariantT<T>& right)
{
Expand Down

0 comments on commit 77919df

Please sign in to comment.