Advertisement
Guest User

Nullable.hpp

a guest
Jun 9th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #pragma once
  2.  
  3. // This header actually had code in because it's generic but I removed the implementation.
  4. template <class T>
  5. class Nullable
  6. {
  7.     T* data;
  8. public:
  9.     Nullable(void);
  10.     Nullable(T value);
  11.     T& Value(void);
  12.     bool HasValue(void) const;
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement