1 // testtypedefs.cpp --- Sample with some fake bits out of std::string
3 // Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
5 // Author: Eric M. Ludlam <eric@siege-engine.com>
7 // This file is part of GNU Emacs.
9 // GNU Emacs is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
14 // GNU Emacs is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 // Thanks Ming-Wei Chang for these examples.
25 template <T
>class basic_string
{
31 typedef std::basic_string
<char> mstring
;
34 typedef basic_string
<char> bstring
;
42 // It doesn't work here.
59 template <class mytype
>
66 typedef TBar
<char> new_TBar
;
82 // arch-tag: 5a841384-8685-4344-bf45-15d3db19a87b