aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-13 09:21:09 +0200
committerDavid Robillard <d@drobilla.net>2018-10-13 09:21:09 +0200
commit045128813d1a69a6483ff2f8f870562b96be0a65 (patch)
treef8ee1bac7fdf773111bf895972c4f50104c6db30
parent7730f31811cac8a3e46ce36f94778a52dce48b33 (diff)
downloadchilbert-045128813d1a69a6483ff2f8f870562b96be0a65.tar.gz
chilbert-045128813d1a69a6483ff2f8f870562b96be0a65.tar.bz2
chilbert-045128813d1a69a6483ff2f8f870562b96be0a65.zip
Remove pointless consts in function declarations
-rw-r--r--chilbert/chilbert.hpp34
1 files changed, 14 insertions, 20 deletions
diff --git a/chilbert/chilbert.hpp b/chilbert/chilbert.hpp
index 2954cf3..7a69ab2 100644
--- a/chilbert/chilbert.hpp
+++ b/chilbert/chilbert.hpp
@@ -34,10 +34,7 @@ namespace chilbert {
* @param[out] h Hilbert Index.
*/
template <class P, class H>
-inline void coords_to_index(const P* const p,
- const size_t m,
- const size_t n,
- H& h);
+inline void coords_to_index(const P* p, size_t m, size_t n, H& h);
/** Map the Hilbert Index `p` to a point.
*
@@ -50,10 +47,7 @@ inline void coords_to_index(const P* const p,
* @param h Hilbert Index.
*/
template <class P, class H>
-inline void index_to_coords(P* const p,
- const size_t m,
- const size_t n,
- const H& h);
+inline void index_to_coords(P* p, size_t m, size_t n, const H& h);
/** Map the point `p` to a Compact Hilbert Index.
*
@@ -68,12 +62,12 @@ inline void index_to_coords(P* const p,
* @param m Optional largest precision in `m`.
*/
template <class P, class H>
-inline void coords_to_compact_index(const P* const p,
- const size_t* const ms,
- const size_t n,
- H& hc,
- const size_t M = 0,
- const size_t m = 0);
+inline void coords_to_compact_index(const P* p,
+ const size_t* ms,
+ size_t n,
+ H& hc,
+ size_t M = 0,
+ size_t m = 0);
/** Map the Compact Hilbert Index `hc` to a point.
*
@@ -88,12 +82,12 @@ inline void coords_to_compact_index(const P* const p,
* @param m Optional largest precision in `m`.
*/
template <class P, class H>
-inline void compact_index_to_coords(P* const p,
- const size_t* const ms,
- const size_t n,
- const H& hc,
- const size_t M = 0,
- const size_t m = 0);
+inline void compact_index_to_coords(P* p,
+ const size_t* ms,
+ size_t n,
+ const H& hc,
+ size_t M = 0,
+ size_t m = 0);
} // namespace chilbert