This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

abs(int)


hi,
I try to figure out from the standard but it's not clear to me.
int abs(int) have to be defined in namespace std or not? untill now
I suppose I can use std::abs(x) for all type of x (all buildin type:-)
but may be I can do it float, double, long...except int?
anyway stdc++ doesn't put abs(int) in namespace std.

 -- Levente                               "Si vis pacem para bellum!"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]