Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78977319
myvector_template.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 24, 02:22
Size
231 B
Mime Type
text/x-c++
Expires
Mon, Aug 26, 02:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20130551
Attached To
R9360 PCSC_git
myvector_template.hh
View Options
// a generic Vector for any scalar type
template <typename T> class MyVector {
public:
T &operator[](unsigned int dim) { return value[dim]; }
private:
T value[3];
};
MyVector<double> real_vector;
MyVector<int> integer_vector;
Event Timeline
Log In to Comment