geode/codegen/Broma/PEGTL-3.2.7/include/tao/pegtl/internal/input_pair.hpp

30 lines
585 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
// Copyright (c) 2014-2022 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP
#define TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP
#include <cstdint>
#include "../config.hpp"
namespace TAO_PEGTL_NAMESPACE::internal
{
template< typename Data >
struct input_pair
{
Data data;
std::uint8_t size;
using data_t = Data;
explicit operator bool() const noexcept
{
return size > 0;
}
};
} // namespace TAO_PEGTL_NAMESPACE::internal
#endif