MCPcopy Create free account
hub / github.com/bytedance/dplm / pbackfail

Method pbackfail

analysis/TMscore.cpp:2049–2061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2047 */
2048 template <typename C, typename T>
2049 typename basic_pstreambuf<C,T>::int_type
2050 basic_pstreambuf<C,T>::pbackfail(int_type c)
2051 {
2052 if (this->gptr() != this->eback())
2053 {
2054 this->gbump(-1);
2055 if (!traits_type::eq_int_type(c, traits_type::eof()))
2056 *this->gptr() = traits_type::to_char_type(c);
2057 return traits_type::not_eof(c);
2058 }
2059 else
2060 return traits_type::eof();
2061 }
2062
2063 template <typename C, typename T>
2064 std::streamsize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected