eedb/share/include/tao/json/external/pegtl/internal/input_pair.hh
2017-02-26 09:32:45 +01:00

30 lines
595 B
C++

// Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/
#ifndef TAO_CPP_PEGTL_INTERNAL_INPUT_PAIR_HH
#define TAO_CPP_PEGTL_INTERNAL_INPUT_PAIR_HH
namespace tao_json_pegtl
{
namespace internal
{
template< typename Data >
struct input_pair
{
Data data;
unsigned char size;
using data_t = Data;
explicit operator bool () const
{
return size > 0;
}
};
} // namespace internal
} // namespace tao_json_pegtl
#endif