~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty-proposed

« back to all changes in this revision

Viewing changes to yo/functiontemplates/limits.yo

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2013-05-30 13:32:18 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130530133218-k39mr5uredd093jr
Tags: 9.7.2-1
New upstream release, repairs several minor left-over flaws.
This release incorporates 9.7.0 and 9.7.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
The facilities provided by i(numeric_limits) provide an alternative. To use
30
30
these facilities the header file tthi(limits) header file must be included.
31
31
 
32
 
The class template tt(numberic_limits) offer various members answering all
 
32
The class template tt(numeric_limits) offers various members answering all
33
33
kinds of questions that could be asked of numeric types. Before introducing
34
34
these members, let's have a look at how we could implement the tt(operation)
35
35
function template as just one single function template:
53
53
    numeric_limits<Type>::member    // data members
54
54
    numeric_limits<Type>::member()  // member functions
55
55
        )
56
 
    All tt(numeric_limits) member functions return tt(consexpr) values.
 
56
    All tt(numeric_limits) member functions return tt(constexpr) values.
57
57
 
58
58
    itemization(
59
59
    ithtq(denorm_min)(Type denorm_min())(