forked from Alepha/Alepha
Stackable streambufs have a depth observer now.
This commit is contained in:
@ -93,6 +93,12 @@ namespace Alepha::Hydrogen::IOStreams::detail::StackableStreambuf_m
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::size_t
|
||||||
|
exports::stackDepth( std::ios &ios )
|
||||||
|
{
|
||||||
|
return getStack( ios ).size();
|
||||||
|
}
|
||||||
|
|
||||||
std::ostream &
|
std::ostream &
|
||||||
impl::operator << ( std::ostream &os, PopStack )
|
impl::operator << ( std::ostream &os, PopStack )
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,8 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: StackableStreambuf_m
|
|||||||
template< typename > struct PushStack;
|
template< typename > struct PushStack;
|
||||||
|
|
||||||
struct PopStack{};
|
struct PopStack{};
|
||||||
|
|
||||||
|
std::size_t stackDepth( std::ios & );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct StackableStreambufUnderlyingShim
|
struct StackableStreambufUnderlyingShim
|
||||||
|
Reference in New Issue
Block a user