Results 1 to 4 of 4

Thread: Generic Programming concepts for C++

  1. #1
    Join Date
    Nov 2009
    Posts
    64

    Generic Programming concepts for C++

    I have been reading alot about C++ Generic programming features. But what are they exactly? What are the concepts that are incuded in C++. I have been working on C++ since last 6 months but still never really understood this thing. Can anyone highlight for me the concepts of Generic programming in C++

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Generic Programming concepts for C++

    Generic programming is a method for programming software that optimizes the reusability of code in a manner which does not sacrifice performance. C++ supports generic programming. Generic programming is about generalizing software components so that they can be reused easily in a wide range of situations. In C++, class and function templates are particularly effective mechanisms for generic programming as they make the generalization possible without sacrificing efficiency.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Generic Programming concepts for C++

    Concepts are a part of Generic programming which ar included in C++. Concepts are sets of requirements bundled together under a single name. There are several types of requirements, but the most common kinds are functions, constructors, and operators that the data types must have and associated types that are typically used to express those functions, constructors, and operators.
    ConceptC++ concepts have the capability to directly project refinement relationships, nested requirements, etc, so that all important syntactic features of concepts can be encoded directly in ConceptC++.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Generic Programming concepts for C++

    ConceptC++ is an extension to the C++ Programming Language that introduces first-class support for Generic Programming. It is the first attempt to provide full support for Generic Programming into a mainstream programming language. ConceptC++ is a strong candidate for inclusion into the upcoming ANSI/ISO C++ Standard, dubbed C++0x.

Similar Threads

  1. Some Mockups and Concepts of iSlate
    By Jensen Ackles in forum Portable Devices
    Replies: 6
    Last Post: 27-05-2010, 02:16 PM
  2. Concepts and Effect of O7_DICTIONARY_ACCESSIBILITY
    By Lachlann in forum Software Development
    Replies: 4
    Last Post: 02-02-2010, 08:08 PM
  3. What does OOPS concepts comprises?
    By abigial_i in forum Software Development
    Replies: 3
    Last Post: 08-12-2009, 09:24 AM
  4. OOPS Concepts
    By suneel_g in forum Software Development
    Replies: 3
    Last Post: 22-12-2008, 12:42 PM
  5. Replies: 3
    Last Post: 13-12-2008, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,962,017.91977 seconds with 16 queries