Guest User

Untitled

a guest
Jun 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. template< typename type_t, std::size_t N >
  2. class Vector final
  3. {
  4. public:
  5.  
  6. Vector (void) noexcept = default;
  7.  
  8. void generalMethod (void) noexcept;
  9.  
  10. private:
  11.  
  12. std::array< type_t, N > m_data = {0};
  13. };
  14.  
  15. template< typename type_t, std::size_t N >
  16. void
  17. Vector< type_t, N >::generalMethod (void) noexcept
  18. {
  19. // ... Do something
  20. }
  21.  
  22. template<>
  23. void
  24. Vector< float, 4 >::generalMethod (void) noexcept
  25. {
  26. // ... Do something
  27. }
Add Comment
Please, Sign In to add comment