This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Something about sizeof(char)
- From: Dhruv Matani <dhruvbird at gmx dot net>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: 14 Jun 2004 21:04:28 +0530
- Subject: Something about sizeof(char)
- Organization:
Hi,
Is there any way of knowing whether on a platform the sizeof(char)
being always one is actually one byte == 8-bits? Or 1 is defined as more
than 8-bits.
The reason I'm asking this is because if it can be found out, then the
find_first_of, and the similar class of algorithms for basic_string can
be implemented having complexity O(n + m), where:
n -> Size of input string.
m -> Size of search string.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html