From 1b57e247b8d1a7a41a8ee45d6d524c71edd63a81 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 May 2017 17:20:30 +0200 Subject: Optimize char_scanner if used with ifdstream --- libbutl/fdstream.hxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libbutl/fdstream.hxx') diff --git a/libbutl/fdstream.hxx b/libbutl/fdstream.hxx index e1f5790..dd33263 100644 --- a/libbutl/fdstream.hxx +++ b/libbutl/fdstream.hxx @@ -122,8 +122,10 @@ namespace butl fd () const {return fd_.get ();} public: - using int_type = std::basic_streambuf::int_type; - using traits_type = std::basic_streambuf::traits_type; + using base = std::basic_streambuf; + + using int_type = base::int_type; + using traits_type = base::traits_type; // basic_streambuf input interface. // @@ -134,6 +136,12 @@ namespace butl virtual int_type underflow (); + // Direct access to the get area. Use with caution. + // + using base::gptr; + using base::egptr; + using base::gbump; + private: bool load (); -- cgit v1.1