Topic: Library extesion
Author: stkim@yujinrobot.com ("Kim, Seungtai")
Date: Mon, 22 Nov 2004 05:37:17 GMT Raw View
I have two questions about the library extention.
The Standard's 17.3.1.2/p1
The library can be extended by a C++ program. Each clause, as applicable,
describes the requirements that such extensions must meet.
Such extensions are generally one of the following:
- Template arguments
- Derived classes
- Containers, iterators, and/or algorithms that meet an interface convention
1. Dose the "C++ program" means the implementation defined?
2. How to The next Standard( like a C++0x ) guarantee the backward-portability?
--
S Kim <stkim@yujinrobot.com>
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: kuyper@wizard.net (James Kuyper)
Date: Wed, 24 Nov 2004 16:38:14 GMT Raw View
stkim@yujinrobot.com ("Kim, Seungtai") wrote in message news:<cnrphm$9cg$1@news.kreonet.re.kr>...
> I have two questions about the library extention.
>
> The Standard's 17.3.1.2/p1
>
> The library can be extended by a C++ program. Each clause, as applicable,
> describes the requirements that such extensions must meet.
> Such extensions are generally one of the following:
> - Template arguments
> - Derived classes
> - Containers, iterators, and/or algorithms that meet an interface convention
>
> 1. Dose the "C++ program" means the implementation defined?
No - user defined. This is a little different from the more common use
of "extension" to describe implementation-specific additions to the
language. In this case, user code can extend the behavior of a
standard-defined template by providing it with template arguments.
However, those extensions must meet the interface requirements
applicable to those argumnts. The user can extend the behavior of a
standard-defined class by deriving from it.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]