std::ratio man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

std::ratio(3)							 std::ratio(3)

NAME
       std::ratio -

       Provides compile-time rational arithmetic.

SYNOPSIS
   Public Member Functions
       static_assert (_Num >=-__INTMAX_MAX__ &&_Den >=-__INTMAX_MAX__,'out of
	   range')
       static_assert (_Den!=0,'denominator cannot be zero')

   Static Public Attributes
       static const intmax_t den
       static const intmax_t num

Detailed Description
   template<intmax_t _Num, intmax_t _Den = 1> struct std::ratio< _Num, _Den >
       Provides compile-time rational arithmetic.

       This class template represents any finite rational number with a
       numerator and denominator representable by compile-time constants of
       type intmax_t. The ratio is simplified when instantiated.

       For example:

	   std::ratio<7,-21>::num == -1;
	   std::ratio<7,-21>::den == 3;

       Definition at line 151 of file ratio.

Author
       Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++			  22 Nov 2013			 std::ratio(3)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net