Created
June 1, 2011 09:51
-
-
Save sinya8282/1002055 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Transition { | |
int t[256]; | |
Transition(int fill = REJECT) { std::fill(t, t+256, fill); } | |
int &operator[](std::size_t index) { return t[index]; } | |
const int &operator[](std::size_t index) const { t[index]; } // <- forget 'return' stmt. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment