geode/codegen/Broma/PEGTL-3.2.7/include/tao/pegtl/internal/input_pair.hpp
2022-07-30 19:24:03 +03:00

29 lines
585 B
C++
Executable file

// 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