MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / get_character

Method get_character

include/jwt/json/json.hpp:4851–4863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4849 : current(std::move(first)), end(std::move(last)) {}
4850
4851 typename std::char_traits<char_type>::int_type get_character()
4852 {
4853 if (JSON_HEDLEY_LIKELY(current != end))
4854 {
4855 auto result = std::char_traits<char_type>::to_int_type(*current);
4856 std::advance(current, 1);
4857 return result;
4858 }
4859 else
4860 {
4861 return std::char_traits<char_type>::eof();
4862 }
4863 }
4864
4865 private:
4866 IteratorType current;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected