4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ > using value_type = T; > 効果が分からない

Last updated at Posted at 2016-01-28

http://qiita.com/SaitoAtsushi/items/d26a5cfa5453d8d91b63
のコードをもとにSTLやtemplateを少しずつ勉強している。

template<class T>
class continuous {
...
    using value_type = T;
...

上記のvalue_typeの一文の効果が分かっていない。

// type alias can introduce a member typedef name
template<typename T>
struct Container { using value_type = T; };

typename value_type      = T;        // use channel_traits<T>::value_type to access it

今のところ説明のweb検索は成功していない。

STLの本で勉強するのがいいかもしれない。

4
5
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?