Problem 1892 - G4ProcessVector misses begin and end methods
Summary: G4ProcessVector misses begin and end methods
Status: RESOLVED WONTFIX
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes (show other problems)
Version: other
Hardware: All All
: P4 minor
Assignee: Andrea Dotti
URL:
Depends on:
Blocks:
 
Reported: 2016-09-22 19:33 CEST by Andrea Dotti
Modified: 2018-02-08 17:14 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Andrea Dotti 2016-09-22 19:33:40 CEST
Hi please,
assign this to me. The class G4ProcessVector is a thin wrapper of std::vector, but it does not provide some methods (in particular begin() and end()) that are needed to use the class in c++11 range loops and other stl algorithms.

The entire class could be simply replaced with:

struct G4ProcessVector : public std::vector<G4VProcess*> {
bool contains( G4VProcess* ) {}
};

We could consider this.
Andrea
Comment 1 Andrea Dotti 2018-02-08 17:14:34 CET
No manpower for now can be assigned to this