example_fun.h 513 B

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