Symbian3/SDK/Source/GUID-B22DC2FB-FA5C-5F62-8F01-A975EAA24E7F.dita
changeset 7 51a74ef9ed63
parent 0 89d6a7a84779
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-B22DC2FB-FA5C-5F62-8F01-A975EAA24E7F" xml:lang="en"><title>Templated
       
    13 functions</title><shortdesc>This document describes templated functions.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <p>In <filepath>e32std.h</filepath>, there are also a variety of inline templated
       
    15 functions for performing simple operations: </p>
       
    16 <ul>
       
    17 <li id="GUID-D15013BD-D91A-5AFF-A6B9-F14159E7C2AB"><p>return lower of two
       
    18 values: Min()</p> </li>
       
    19 <li id="GUID-40CF86D7-4FD3-5525-9466-C994C4927C86"><p>return higher of two
       
    20 values: Max()</p> </li>
       
    21 <li id="GUID-6F1E8AC5-0B70-58B0-AA9A-113712C25A14"><p>return absolute value:
       
    22 Abs()</p> </li>
       
    23 <li id="GUID-C2EBFE55-C146-53E4-8619-16D1EEA94D95"><p>check if a value is
       
    24 between two other values: Rng()</p> </li>
       
    25 </ul>
       
    26 <p>These can be called on any type that supports the required operators (<codeph>&lt;</codeph>,<codeph>&gt;</codeph>,<codeph>&lt;=</codeph>,<codeph>&gt;=</codeph>,<codeph>-</codeph>).</p>
       
    27 </conbody></concept>