Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
22.locale.money.get.stdcxx-62.cpp
Go to the documentation of this file.
1
29#include <cassert>
30#include <ios>
31#include <locale>
32
33int main ()
34{
35 typedef std::money_get<char> MoneyGet;
36
37 const MoneyGet &mg = std::use_facet<MoneyGet>(std::locale::classic ());
38
39 std::ios io (0);
40 std::ios::iostate err = std::ios::goodbit;
41 long double x = 0;
42
43 // verify that the facet behavior is well-defined for empty stream
44
45 mg.get (std::istreambuf_iterator<char>(),
46 std::istreambuf_iterator<char>(),
47 false, io, err, x);
48
49 assert ((std::ios::eofbit | std::ios::failbit) == err);
50}
#define x
Definition 17.names.cpp:140
#define assert(expr)
Definition _cassert.h:40