[llvm] r327180 - ADT: Make MapVector::value_type and MapVector::size_type public. NFC.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 9 14:52:22 PST 2018
Author: pcc
Date: Fri Mar 9 14:52:22 2018
New Revision: 327180
URL: http://llvm.org/viewvc/llvm-project?rev=327180&view=rev
Log:
ADT: Make MapVector::value_type and MapVector::size_type public. NFC.
Modified:
llvm/trunk/include/llvm/ADT/MapVector.h
Modified: llvm/trunk/include/llvm/ADT/MapVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/MapVector.h?rev=327180&r1=327179&r2=327180&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/MapVector.h (original)
+++ llvm/trunk/include/llvm/ADT/MapVector.h Fri Mar 9 14:52:22 2018
@@ -36,13 +36,13 @@ template<typename KeyT, typename ValueT,
typename MapType = DenseMap<KeyT, unsigned>,
typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
class MapVector {
- using value_type = typename VectorType::value_type;
- using size_type = typename VectorType::size_type;
-
MapType Map;
VectorType Vector;
public:
+ using value_type = typename VectorType::value_type;
+ using size_type = typename VectorType::size_type;
+
using iterator = typename VectorType::iterator;
using const_iterator = typename VectorType::const_iterator;
using reverse_iterator = typename VectorType::reverse_iterator;
More information about the llvm-commits
mailing list