![The C++ Standard Library](/cpp_standard_library/images/cpp-mini-lib-logo.jpg)
- The C Standard Library
- The C Standard Library
- The C++ Standard Library
- C++ Library - Home
- C++ Library - <fstream>
- C++ Library - <iomanip>
- C++ Library - <ios>
- C++ Library - <iosfwd>
- C++ Library - <iostream>
- C++ Library - <istream>
- C++ Library - <ostream>
- C++ Library - <sstream>
- C++ Library - <streambuf>
- C++ Library - <atomic>
- C++ Library - <complex>
- C++ Library - <exception>
- C++ Library - <functional>
- C++ Library - <limits>
- C++ Library - <locale>
- C++ Library - <memory>
- C++ Library - <new>
- C++ Library - <numeric>
- C++ Library - <regex>
- C++ Library - <stdexcept>
- C++ Library - <string>
- C++ Library - <thread>
- C++ Library - <tuple>
- C++ Library - <typeinfo>
- C++ Library - <utility>
- C++ Library - <valarray>
- The C++ STL Library
- C++ Library - <array>
- C++ Library - <bitset>
- C++ Library - <deque>
- C++ Library - <forward_list>
- C++ Library - <list>
- C++ Library - <map>
- C++ Library - <queue>
- C++ Library - <set>
- C++ Library - <stack>
- C++ Library - <unordered_map>
- C++ Library - <unordered_set>
- C++ Library - <vector>
- C++ Library - <algorithm>
- C++ Library - <iterator>
- C++ Programming Resources
- C++ Programming Tutorial
- C++ Useful Resources
- C++ Discussion
C++ IOS Library - narrow
Description
It is used to fing arrow character and returns the transformation of c to its equivalent using the ctype::narrow facet of the locale object currently imbued in the stream, if such an equivalence exists, or dfault otherwise.
This function is designed for instantiations of basic_ios that use a different (wider) character type: see basic_ios::narro.
Declaration
Following is the declaration for ios::narrow function.
char narrow (char c, char dfault) const;
Parameters
c − Character to be "narrowed".
dfault − Character returned if c has no standard equivalent.
Return Value
The narrow equivalent of c, if any. Otherwise, it returns dfault.
Exceptions
Strong guarantee − if an exception is thrown, there are no changes in the stream.
Data races
Accesses the stream object.
Concurrent access to the same stream object may cause data races.
ios.htm
Advertisements
To Continue Learning Please Login