mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-12 23:15:52 +08:00
Using to replace typedef
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
|
||||
typedef std::pair<int, int> PII;
|
||||
using PII = std::pair<int, int>;
|
||||
|
||||
int prim(int x, const std::vector< std::vector<PII> > &graph) {
|
||||
// priority queue to maintain edges with respect to weights
|
||||
|
||||
Reference in New Issue
Block a user