align16New.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
align16New.h
Go to the documentation of this file.
1 /* align16new.h
2 */
3 #ifndef OSL_ALIGN16NEW_H
4 #define OSL_ALIGN16NEW_H
5 #include <memory>
6 #include <cstddef>
7 namespace osl
8 {
9 namespace misc
10 {
11 struct Align16New
12 {
13 static const int Alignment = 16;
14 static void *operator new(size_t size);
15 static void *operator new[](size_t size);
16 static void operator delete(void *ptr, size_t size);
17 static void operator delete[](void *ptr, size_t size);
18 protected:
19 ~Align16New() {} // for safety in public inheritance
20 };
21 }
22 }
23
24 #endif /* OSL_ALIGN16NEW_H */
25 // ;;; Local Variables:
26 // ;;; mode:c++
27 // ;;; c-basic-offset:2
28 // ;;; End: