Use small_vector for API iterate_args (#597)
* Use small_vector for API iterate_args - replace dim3 value arguments with rocprofiler_dim3_t - dim3 has a non-trivial destructor - common::mpl::unqualified_type - common::stringified_argument_array_t<N> alias - assert_public_data_type_properties() - common::container::small_vector<T>::at function - stringize returns small_vector<stringified_argument> - stack allocated vector - remove has_pc_sampling condition (HSA, HIP) - this will be handled in queue interception * Misc tweaks
This commit is contained in:
committed by
GitHub
parent
2a262235db
commit
8591ed1c96
@@ -50,6 +50,7 @@
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <new>
|
||||
#include <stdexcept>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
@@ -345,6 +346,17 @@ public:
|
||||
return begin()[idx];
|
||||
}
|
||||
|
||||
reference at(size_type idx)
|
||||
{
|
||||
if(idx >= size()) throw std::out_of_range{"small_vector::at"};
|
||||
return begin()[idx];
|
||||
}
|
||||
const_reference at(size_type idx) const
|
||||
{
|
||||
if(idx >= size()) throw std::out_of_range{"small_vector::at"};
|
||||
return begin()[idx];
|
||||
}
|
||||
|
||||
reference front()
|
||||
{
|
||||
assert(!empty());
|
||||
|
||||
Reference in New Issue
Block a user