Sha256: 49449491f1167225b48d84d5d988e61026527d62b53810f229e6be8a00105b5e

Contents?: true

Size: 485 Bytes

Versions: 25

Compression:

Stored size: 485 Bytes

Contents

#include <iostream>
#include "../paths.hpp"

using namespace std;
using namespace Sass;

template<typename T>
vector<T>& operator<<(vector<T>& v, const T& e)
{
  v.push_back(e);
  return v;
}

int main()
{
  vector<int> v1, v2, v3;
  v1 << 1 << 2;
  v2 << 3;
  v3 << 4 << 5 << 6;

  vector<vector<int> > ss;
  ss << v1 << v2 << v3;

  vector<vector<int> > ps = paths(ss);
  for (size_t i = 0, S = ps.size(); i < S; ++i) {
    cout << vector_to_string(ps[i]) << endl;
  }
  return 0;
}

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
sassc-0.0.6 ext/libsass/test/test_paths.cpp
sassc-0.0.5 ext/libsass/test/test_paths.cpp
sassc-0.0.4 ext/libsass/test/test_paths.cpp
sassc-0.0.2 ext/libsass/test/test_paths.cpp
sassc-0.0.1 ext/libsass/test/test_paths.cpp