A Tcl like command language made for the Clinl kernel testing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
604 B

5 years ago
  1. #pragma once
  2. #include <stddef.h>
  3. namespace __internals{
  4. /* Enable_if implementation */
  5. template<bool b, class T = void>
  6. struct enable_if{};
  7. template<class T>
  8. struct enable_if<true,T>{
  9. typedef T type;
  10. };
  11. /* Enable_if helper implementation */
  12. template<bool b, class T = void>
  13. using enable_if_t = typename enable_if<b,T>::type;
  14. /* static_assert implementaion for comparing integers */
  15. template<bool b, typename t = enable_if_t<b>>
  16. class check{
  17. };
  18. }
  19. namespace ksdk{
  20. class container
  21. {
  22. public:
  23. size_t size();
  24. };
  25. template<class T>
  26. class typed_container : public container
  27. {
  28. };
  29. }