Indiana Unversity logo[ConceptGCC]

ConceptGCC :

Concepts in std::string; default implementations

From: Stefan (jan_ek_at_[hidden])
Date: 2007-04-08 06:18:46


Hello!

I'm very excited about the idea of concepts. I have a few questions:

1) Is there a proposal to "conceptualize" std::string? I'm writing a
class, in which I operate on characters, so it looks like this:

template<typename CharT>
class MyClass
{
     // ...
};

It would be nice to have a concept for that CharT type. Is there going
to be one in the standard library?

2) Why sometimes I need to include the <concepts> header?

3) Is the ';' needed after concept or concept_map? AFAIK no, but in all
examples in the tutorial it's there.

4) What's a default implementation? Is it a function that lives in some
translation unit or is it some sort of metacode?

Thanks in advance.

Stefan Chrobot