wrapping namespace

This commit is contained in:
Andrea Crotti 2010-11-22 00:10:06 +01:00
parent bbbf5b4bd8
commit 16a59328fd
3 changed files with 11 additions and 2 deletions

View file

@ -2,4 +2,4 @@
# name: d_operator<<
# key: <<
# --
friend ostream& operator<<(ostream&, const ${1:Class}&);
friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);

9
c++-mode/namespace Normal file
View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: namespace
# key: ns
# --
namespace ${1:Namespace} {
`yas/selected-text`
}

View file

@ -3,7 +3,7 @@
# key: <<
# contributor: Andrea crotti
# --
ostream& operator<<(ostream& s, const ${1:type}& ${2:c})
std::ostream& operator<<(std::ostream& s, const ${1:type}& ${2:c})
{
$0
return s;