]> git.lyx.org Git - lyx.git/blob - src/support/types.h
whitespace changes;
[lyx.git] / src / support / types.h
1 #ifndef LYX_TYPES_H
2 #define LYX_TYPES_H
3
4 // provide a set of typedefs for commonly used things like sizes and
5 // indices whil trying to stay compatible with typse used by the standard
6 // containers.
7
8
9 // this probably could be improved by using <cstddef>...
10 #include <vector>
11
12 namespace lyx
13 {
14         /// a type for sizes
15         typedef std::vector<char>::size_type         size_type;
16
17         /// a type for positions used in paragraphs
18         // needs to be signed for a while to hold the special value -1 that is
19         // used there...
20         typedef std::vector<char>::difference_type   pos_type;
21
22         /// a type used for numbering layouts   
23         typedef std::vector<char>::size_type         layout_type;
24
25 }
26
27 #endif