|
BashSpark
|
Provides null stream implementations for basic input and output. More...
#include <streambuf>#include <ostream>#include <istream>

Go to the source code of this file.
Classes | |
| class | bs::basic_nullbuffer< char_t, traits_t > |
| A null stream buffer that ignores all input and output. More... | |
| class | bs::basic_iinullstream< char_t, traits_t > |
| A null input stream that provides no input. More... | |
| class | bs::basic_onullstream< char_t, traits_t > |
| A null output stream that discards all output. More... | |
Namespaces | |
| namespace | bs |
| BashSpark main namespace. | |
Typedefs | |
| using | bs::onullstream = basic_onullstream< char, std::char_traits< char > > |
| Type alias for a null output stream using char type. | |
| using | bs::u8onullstream = basic_onullstream< char8_t, std::char_traits< char8_t > > |
| Type alias for a null output stream using char8_t type. | |
| using | bs::u16onullstream = basic_onullstream< char16_t, std::char_traits< char16_t > > |
| Type alias for a null output stream using char16_t type. | |
| using | bs::u32onullstream = basic_onullstream< char32_t, std::char_traits< char32_t > > |
| Type alias for a null output stream using char32_t type. | |
| using | bs::inullstream = basic_iinullstream< char, std::char_traits< char > > |
| Type alias for a null input stream using char type. | |
| using | bs::u8inullstream = basic_iinullstream< char8_t, std::char_traits< char8_t > > |
| Type alias for a null input stream using char8_t type. | |
| using | bs::u16inullstream = basic_iinullstream< char16_t, std::char_traits< char16_t > > |
| Type alias for a null input stream using char16_t type. | |
| using | bs::u32inullstream = basic_iinullstream< char32_t, std::char_traits< char32_t > > |
| Type alias for a null input stream using char32_t type. | |
Provides null stream implementations for basic input and output.
This header file defines null input and output stream classes that discard all data written to them and provide no data for input.
The classes are designed to be used in situations where you need to implement stream interfaces without actual data processing — for example, during testing or when logging output with no requirement to store the data.
This file is part of BashSpark. Copyright (c) 2025 Dante Doménech Martínez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.