Skip to content

Commit

Permalink
remove redundant void argument type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Sep 13, 2015
1 parent 41401f9 commit 7ebee35
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions templates/g_muon_minus_2.cpp.in
Expand Up @@ -90,17 +90,17 @@ private:
std::memcpy(indices.data(), i, N * sizeof(unsigned int));
}
public:
const std::array<unsigned int, N> &operator*(void) const
const std::array<unsigned int, N> &operator*() const
{
return indices;
}

const std::array<unsigned int, N> *operator->( void ) const
const std::array<unsigned int, N> *operator->() const
{
return &indices;
}

IndexIterator &operator++(void)
IndexIterator &operator++()
{
for (unsigned int i = 0; i != N; i++) {
indices[i]++;
Expand Down Expand Up @@ -147,12 +147,12 @@ template<unsigned int N> struct IndexBounds {

typedef IndexIterator<N> const_iterator;

const_iterator begin(void) const
const_iterator begin() const
{
return const_iterator(*this, indexBegin);
}

const_iterator end(void) const
const_iterator end() const
{
return const_iterator(*this, indexEnd);
}
Expand All @@ -164,9 +164,9 @@ template<> struct IndexBounds<0> {

static const indices_type dummyIndex;

const_iterator begin(void) const
const_iterator begin() const
{ return &dummyIndex; }
const_iterator end(void) const
const_iterator end() const
{ return (begin()+1); }
};
IndexBounds<0>::indices_type IndexBounds<0>::dummyIndex = {};
Expand All @@ -188,11 +188,11 @@ struct EvaluationContext {
* @fn mass<P>
* @brief Returns the mass of a particle.
*/
template<class P> double mass(void) const;
template<class P> double mass() const;
template<class P> double mass(unsigned int) const;
};

template<class P> double EvaluationContext::mass(void) const
template<class P> double EvaluationContext::mass() const
{
return mass<typename anti<P>::type>();
}
Expand Down Expand Up @@ -234,7 +234,7 @@ public:
* @fn value
* @brief Returns the value of the vertex.
*/
std::complex<double> value(void) const
std::complex<double> value() const
{
return val;
}
Expand All @@ -243,7 +243,7 @@ public:
* @fn isZero
* @brief Tests whether the value is numerically significant
*/
bool isZero(void) const
bool isZero() const
{
return (is_zero(val.real()) && is_zero(val.imag()));
}
Expand All @@ -265,7 +265,7 @@ public:
* @fn left
* @brief Returns the left component of the vertex.
*/
std::complex<double> left(void) const
std::complex<double> left() const
{
return value.first;
}
Expand All @@ -274,7 +274,7 @@ public:
* @fn right
* @brief Returns the left component of the vertex.
*/
std::complex<double> right(void) const
std::complex<double> right() const
{
return value.second;
}
Expand All @@ -283,7 +283,7 @@ public:
* @fn isZero
* @brief Tests whether the values are numerically significant
*/
bool isZero(void) const
bool isZero() const
{
return (is_zero(value.first.real()) && is_zero(value.first.imag()) &&
is_zero(value.second.real()) && is_zero(value.second.imag()));
Expand Down Expand Up @@ -323,7 +323,7 @@ public:
typedef typename index_bounds::indices_type indices_type;
typedef typename Base::vertex_type vertex_type;
public:
static const index_bounds &indexBounds(void)
static const index_bounds &indexBounds()
{
return indexB;
}
Expand Down

0 comments on commit 7ebee35

Please sign in to comment.