Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5071aff0 authored by hhakim's avatar hhakim
Browse files

Add Slice::size().

parent f4a25744
No related branches found
No related tags found
No related merge requests found
...@@ -58,4 +58,9 @@ namespace Faust { ...@@ -58,4 +58,9 @@ namespace Faust {
cout << "start_id:" << start_id << endl; cout << "start_id:" << start_id << endl;
cout << "end_id:" << end_id << endl; cout << "end_id:" << end_id << endl;
} }
size_t Slice::size() const
{
return end_id - start_id;
}
} }
...@@ -22,6 +22,7 @@ namespace Faust ...@@ -22,6 +22,7 @@ namespace Faust
void display(); void display();
static void swap(Slice& s1, Slice& s2); static void swap(Slice& s1, Slice& s2);
size_t size() const;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment