summaryrefslogtreecommitdiff
path: root/src/utils/get_first_non_empty.cpp
blob: 5b3bedb68b08b6bf7a4aeeb9b9d5c286a74321a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <utils/get_first_non_empty.hpp>

bool is_empty(const std::string& val)
{
  return val.empty();
}

bool is_empty(const int& val)
{
  return val == 0;
}