example_fun.h 574 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_EXAMPLE_FUN_H
  2. #define IGL_EXAMPLE_FUN_H
  3. #ifdef IGL_HEADER_ONLY
  4. # define IGL_INLINE inline
  5. #else
  6. # define IGL_INLINE
  7. #endif
  8. namespace igl
  9. {
  10. // This is an example of a function, it takes a templated parameter and
  11. // shovels it into cout
  12. //
  13. // Templates:
  14. // T type that supports
  15. // Input:
  16. // input some input of a Printable type
  17. // Returns true for the sake of returning something
  18. template <typename Printable>
  19. IGL_INLINE bool example_fun(const Printable & input);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "example_fun.cpp"
  23. #endif
  24. #endif