File: debug.h

package info (click to toggle)
threeb 0.0~git20220106110332.a3144e0-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,296 kB
  • sloc: cpp: 5,188; java: 1,741; ansic: 1,336; sh: 568; makefile: 62; awk: 26
file content (20 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef STORM_INCLUDE_DEBUG_H
#define STORM_INCLUDE_DEBUG_H

#include <cassert>

/** Determines that all images in the incoming container are the 
same size, and that the container is not empty
@param images Container to check
@ingroup gDebug
*/
template<class C> void assert_same_size(const C& images)
{
	assert(!images.empty());
	for(typename C::const_iterator i=images.begin(); i != images.end(); i++)
		assert(i->size() == images.front().size());
}


#endif