Home | History | Annotate | Download | only in locale.time.get.members
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <locale>
     11 
     12 // class time_get<charT, InputIterator>
     13 
     14 // dateorder date_order() const;
     15 
     16 #include <locale>
     17 #include <cassert>
     18 #include "test_iterators.h"
     19 
     20 typedef std::time_get<char, input_iterator<const char*> > F;
     21 
     22 class my_facet
     23     : public F
     24 {
     25 public:
     26     explicit my_facet(std::size_t refs = 0)
     27         : F(refs) {}
     28 };
     29 
     30 int main()
     31 {
     32     const my_facet f(1);
     33     assert(f.date_order() == std::time_base::mdy);
     34 }
     35