cdeclog

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

template 2

template

generic #template은 C++의 generic한 기능을 받쳐주는 핵심적인 도구입니다. 이 도구에 의해 탄생한 STL과 표준 라이브러리들은 확장성과 타입 안정성등의 이점으로 다른 언어의 라이브러리들과는 다른 진화된 디자인을 보여주고 있습니다. 이름 그대로 template은 타입에대한 명세서와 같습니다. template 자체가 타입이 아니고 타입에 대한 내용을 기술함으로서 타입생성에 틀이 되는 것입니다. 붕어빵을 예를들면 붕어빵에 팥을 넣느냐 아니면 계란을 넣느냐에 따라 붕어모양의 붕어빵이 나오느냐 붕어모양의 계란빵이 나오느냐와 같은 이치입니다. 그 붕어빵 틀이 template 입니다. template # #include using std::string; template T Add(T tp1, T..

Dev/C++ 2008.05.01

A non-type template-parameter

14.1.4 A non-type template-parameter shall have one of the following (optionally cv-qualified) types: * integral or enumeration type, * pointer to object or pointer to function, * reference to object or reference to function, * pointer to member. [Programming Language C++ (ISO)]

Dev/C++ 2007.05.14
이전
1
다음
더보기
프로필사진

cdeclog

Bright Size Life

  • 분류 전체보기 (300)
    • 일상 (105)
    • 사진 (71)
    • 책읽기 (4)
    • Dev (119)
      • C++ (55)
      • .NET (7)
      • Java (2)
      • devops (0)
      • Windows (26)
      • Linux (2)
      • SQL (4)
      • Data (6)
      • Network (4)
      • Web (1)
      • Encryption (6)

Tag

Lambda, withdll, REST, atl, aphache spark, Git, operator overloading, C++0x, 구글캘린더, libtcmalloc_minimal, C++, spark, dll, boost, template, Asio, C++ 0x, Hadoop for Windows, new, COM+,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • https://cdecl.github.io/ 이동

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바